Change-Id: I82c26a21c3d4f2f96771bda1a4b2a7588ce1315c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
help="do not return the control immediately, but keep it "
"until the operation is completed, or timeout",
)
+@click.option("--timeout", default=None, help="ns deployment timeout")
@click.pass_context
def ns_create(
ctx,
config,
config_file,
wait,
+ timeout
):
"""creates a new NS instance"""
logger.debug("")
ssh_keys=ssh_keys,
account=vim_account,
wait=wait,
+ timeout=timeout,
)
# except ClientException as e:
# print(str(e))
description="default description",
admin_status="ENABLED",
wait=False,
+ timeout=None,
):
self._logger.debug("")
self._client.get_token()
for pubkeyfile in ssh_keys.split(","):
with open(pubkeyfile, "r") as f:
ns["ssh_keys"].append(f.read())
+ if timeout:
+ ns["timeout_ns_deploy"] = timeout
if config:
ns_config = yaml.safe_load(config)
if "vim-network-name" in ns_config: