v0.5.2 enlarge vim_tenant_id to allow extra fields. Allow extra datacenter configuration at attachment
Change-Id: I7a99a65be55fb7520633ceb33922c0ff2ea96c3f
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/openmano b/openmano
index 818e717..6c546c1 100755
--- a/openmano
+++ b/openmano
@@ -28,8 +28,8 @@
'''
__author__="Alfonso Tierno, Gerardo Garcia"
__date__ ="$09-oct-2014 09:09:48$"
-__version__="0.4.6-r500"
-version_date="Sep 2016"
+__version__="0.4.7-r511"
+version_date="Oct 2016"
from argcomplete.completers import FilesCompleter
import os
@@ -889,6 +889,8 @@
datacenter_dict['vim_username'] = args.user
if args.password != None:
datacenter_dict['vim_password'] = args.password
+ if args.config!=None:
+ datacenter_dict["config"] = _load_file_or_yaml(args.config)
payload_req = json.dumps( {"datacenter": datacenter_dict })
#print payload_req
@@ -1335,6 +1337,7 @@
datacenter_attach_parser.add_argument('--vim-tenant-name', action='store', help="specify a datacenter tenant name.")
datacenter_attach_parser.add_argument("--user", action="store", help="user credentials for the datacenter")
datacenter_attach_parser.add_argument("--password", action="store", help="password credentials for the datacenter")
+ datacenter_attach_parser.add_argument("--config", action="store", help="aditional configuration in json/yaml format")
datacenter_attach_parser.set_defaults(func=datacenter_attach)
datacenter_detach_parser = subparsers.add_parser('datacenter-detach', parents=[parent_parser], help="removes the association between a datacenter and the operating tenant")