Fixes 1440 with proper iteration of dict 25/10425/1
authorgarciaale <agarcia@whitestack.com>
Tue, 2 Mar 2021 13:49:28 +0000 (10:49 -0300)
committergarciaale <agarcia@whitestack.com>
Tue, 2 Mar 2021 13:49:28 +0000 (10:49 -0300)
Change-Id: If1cdf143aaebb8c5246a8cae6cc6aff239ab0637
Signed-off-by: garciaale <agarcia@whitestack.com>
osm_lcm/ns.py

index 75db8e5..a006f8e 100644 (file)
@@ -595,7 +595,7 @@ class NsLcm(LcmBase):
             for param in ("vim-network-name", "vim-network-id"):
                 if vld_params.get(param):
                     if isinstance(vld_params[param], dict):
-                        for vim, vim_net in vld_params[param]:
+                        for vim, vim_net in vld_params[param].items():
                             other_target_vim = "vim:" + vim
                             populate_dict(target_vld["vim_info"], (other_target_vim, param.replace("-", "_")), vim_net)
                     else:  # isinstance str