Signed-off-by: Dimitris Aragiorgis <[email protected]> --- OK. I see. Are you fine with the following interdiff? It just builds a dummy network object containing the initial values and the ones that have been changed and then uses the HooksDict() method.
Thanks,
dimara
lib/cmdlib.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 3e7f3da..c034cc9 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -16409,7 +16409,15 @@ class LUNetworkSetParams(LogicalUnit):
"""Build hooks env.
"""
- return self.nobj.HooksDict()
+ nobj = objects.Network(name=self.op.network_name,
+ network=self.network,
+ gateway=self.gateway,
+ network6=self.network6,
+ gateway6=self.gateway6,
+ mac_prefix=self.mac_prefix,
+ tags=self.tags)
+
+ return nobj.HooksDict()
def BuildHooksNodes(self):
"""Build hooks nodes.
--
1.7.10.4
signature.asc
Description: Digital signature
