osmclient: sol005.ns create now uses datacenter id
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 23 Apr 2018 15:15:56 +0000 (17:15 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 23 Apr 2018 15:15:56 +0000 (17:15 +0200)
Change-Id: I67cb2e6d675974e20404400d6e7a0c0b91557bc3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/sol005/ns.py

index 4134f77..b1678cf 100644 (file)
@@ -96,9 +96,7 @@ class Ns(object):
         ns['nsdId'] = nsd['_id']
         ns['nsName'] = nsr_name
         ns['nsDescription'] = description
-        #ns['vimAccountId'] = datacenter['_id']
-        # TODO: Fix it to use datacenter _id
-        ns['vimAccountId'] = datacenter['name']
+        ns['vimAccountId'] = datacenter['_id']
         #ns['userdata'] = {}
         #ns['userdata']['key1']='value1'
         #ns['userdata']['key2']='value2'