X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fv1%2Fns.py;h=e6b747fd78a75ac35f65a6a3a07189a85ac329fa;hb=refs%2Fchanges%2F68%2F9568%2F1;hp=de6030838c2408005461edf2dc3488333d18749b;hpb=ab51ef7a920bfb6d036d18ae5f3063a0d780cab2;p=osm%2Fosmclient.git diff --git a/osmclient/v1/ns.py b/osmclient/v1/ns.py index de60308..e6b747f 100644 --- a/osmclient/v1/ns.py +++ b/osmclient/v1/ns.py @@ -69,7 +69,7 @@ class Ns(object): ns_name, resp)) - def create(self, nsd_name, nsr_name, account, wim_account=None, config=None, + def create(self, nsd_name, nsr_name, account, config=None, ssh_keys=None, description='default description', admin_status='ENABLED'): postdata = {} @@ -116,7 +116,7 @@ class Ns(object): ns_config = {} if config: - ns_config = yaml.load(config) + ns_config = yaml.safe_load(config) if ns_config and 'vim-network-name' in ns_config: for network in ns_config['vim-network-name']: