X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fv1%2Fns.py;h=3d638e14fcd9fc26a03b88b5e0fba68075cca664;hb=c4cd58f1fa79599a489730b41cda4cf43f552ecd;hp=8ea18545b1f61b10f2c8b546009eaa7eba8d9484;hpb=6380fc0aa54cc7c3700a5a1f655e619471684611;p=osm%2Fosmclient.git diff --git a/osmclient/v1/ns.py b/osmclient/v1/ns.py index 8ea1854..3d638e1 100644 --- a/osmclient/v1/ns.py +++ b/osmclient/v1/ns.py @@ -113,6 +113,8 @@ class Ns(object): nsr['ssh-authorized-key'] = ssh_keys_format + ns_config = {} + if config: ns_config = yaml.load(config) @@ -120,7 +122,7 @@ class Ns(object): for network in ns_config['vim-network-name']: # now find this network vld_name = network['name'] - vim_vld_name = network['vim-network-name'] + # vim_vld_name = network['vim-network-name'] for index, vld in enumerate(nsr['nsd']['vld']): if vld['name'] == vld_name: