commit 091ab4d2d6b0823566b018a0165f1de3257f60e2 Author: Ondrej Lichtner olichtne@redhat.com Date: Wed Apr 9 11:09:57 2014 +0200
InterfaceManager: update dev name in configuration dict
This commit solves the problem of updated device names not being visible in the {Net, Nm}ConfigDevice objects. This caused crashes on slave deconfiguration if the device changed it's name during test execution.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Slave/InterfaceManager.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/lnst/Slave/InterfaceManager.py b/lnst/Slave/InterfaceManager.py index 107601c..c21dc16 100644 --- a/lnst/Slave/InterfaceManager.py +++ b/lnst/Slave/InterfaceManager.py @@ -204,6 +204,9 @@ class Device(object): self._ip = None #TODO self._master = nl_msg.get_attr("IFLA_MASTER")
+ if self._conf_dict: + self._conf_dict["name"] = self._name + #return an update message that will be sent to the controller return {"type": "if_update", "devname": self._name,
lnst-developers@lists.fedorahosted.org