summaryrefslogtreecommitdiffstats
path: root/lib/python/apex_python_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/apex_python_utils.py')
-rwxr-xr-xlib/python/apex_python_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py
index c548437d..4820fe4d 100755
--- a/lib/python/apex_python_utils.py
+++ b/lib/python/apex_python_utils.py
@@ -97,14 +97,13 @@ def build_nic_template(args):
network_settings = NetworkSettings(args.net_settings_file,
args.network_isolation)
- settings = network_settings.settings_obj
env = Environment(loader=FileSystemLoader(template_dir))
template = env.get_template(template)
# gather vlan values into a dict
net_list = copy(args.enabled_networks).split(' ')
net_list.remove(ADMIN_NETWORK)
- vlans_vals = map(lambda x: settings[x]['vlan'], net_list)
+ vlans_vals = map(lambda x: network_settings[x]['vlan'], net_list)
vlans = dict(zip(net_list, vlans_vals))
nics = network_settings.nics