projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding operational state to the vim-list
[osm/osmclient.git]
/
osmclient
/
v1
/
ns.py
diff --git
a/osmclient/v1/ns.py
b/osmclient/v1/ns.py
index
de60308
..
e6b747f
100644
(file)
--- a/
osmclient/v1/ns.py
+++ b/
osmclient/v1/ns.py
@@
-69,7
+69,7
@@
class Ns(object):
ns_name,
resp))
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 = {}
ssh_keys=None, description='default description',
admin_status='ENABLED'):
postdata = {}
@@
-116,7
+116,7
@@
class Ns(object):
ns_config = {}
if config:
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']:
if ns_config and 'vim-network-name' in ns_config:
for network in ns_config['vim-network-name']: