help='PLUMgrid Director IP', default=None) parser.add_argument('--pg_username', required=False, help='Username', default=None) parser.add_argument('--pg_password', required=False, help='Username', default=None) args = parser.parse_args() CONF = args.config_file existing_conf = api_helper.get_config_section(CONF, "Creds") check_conf = api_helper.check_config_section(CONF, "topology") if check_conf and check_conf["type"] == "nfv": print "NFV VD" else: print "Configuration not found for NFV VD" sys.exit(1) AUTH_URL = api_helper.get_config_item("os_auth_url", existing_conf, args.os_auth_url) USERNAME = api_helper.get_config_item("os_tenant_username", existing_conf, args.os_tenant_username) TENANT = api_helper.get_config_item("os_tenant_name", existing_conf, args.os_tenant_name) PASSWORD = api_helper.get_config_item("os_tenant_password", existing_conf, args.os_tenant_password)
help='PLUMgrid Director IP', default=None) parser.add_argument('--pg_username', required=False, help='Username', default=None) parser.add_argument('--pg_password', required=False, help='Username', default=None) args = parser.parse_args() CONF = args.config_file existing_conf = api_helper.get_config_section(CONF, "Creds") AUTH_URL = api_helper.get_config_item("os_auth_url", existing_conf, args.os_auth_url) USERNAME = api_helper.get_config_item("os_tenant_username", existing_conf, args.os_tenant_username) TENANT = api_helper.get_config_item("os_tenant_name", existing_conf, args.os_tenant_name) PASSWORD = api_helper.get_config_item("os_tenant_password", existing_conf, args.os_tenant_password) ADMIN_USER = api_helper.get_config_item("os_admin_user", existing_conf, args.os_admin_user) ADMIN_TENANT = api_helper.get_config_item("os_admin_tenant", existing_conf, args.os_admin_tenant) ADMIN_PASSWORD = api_helper.get_config_item("os_admin_password", existing_conf,
parser.add_argument('--os_admin_tenant', required=False, help='Name of the tenant', default=None) parser.add_argument('--pg_director_ip', required=False, help='PLUMgrid Director IP', default=None) parser.add_argument('--pg_username', required=False, help='Username', default=None) parser.add_argument('--pg_password', required=False, help='Username', default=None) args = parser.parse_args() CONF = args.config_file existing_conf = api_helper.get_config_section(CONF, "Creds") check_conf = api_helper.check_config_section(CONF, "topology") if check_conf and check_conf["type"] == "nfv": print "NFV VD" else: print "Configuration not found for NFV VD" sys.exit(1) AUTH_URL = api_helper.get_config_item("os_auth_url", existing_conf, args.os_auth_url) USERNAME = api_helper.get_config_item("os_tenant_username", existing_conf, args.os_tenant_username) TENANT = api_helper.get_config_item("os_tenant_name", existing_conf, args.os_tenant_name) PASSWORD = api_helper.get_config_item("os_tenant_password", existing_conf, args.os_tenant_password) ADMIN_USER = api_helper.get_config_item("os_admin_user", existing_conf, args.os_admin_user) ADMIN_TENANT = api_helper.get_config_item("os_admin_tenant", existing_conf, args.os_admin_tenant) ADMIN_PASSWORD = api_helper.get_config_item("os_admin_password", existing_conf, args.os_admin_password)