Add --tenant-id in VIM & VNFD osc commands

Compare to tacker commands, the vim and vnfd in osc commands
do not have --tenant-id (or project id) argument when registering
or creating the vim or vnfd.

Change-Id: I53022ca915d5119668777fcebf2af25199b5c326
Implements: blueprint tacker-support-python-openstackclient
This commit is contained in:
Nguyen Hai 2018-02-22 03:09:08 +09:00
parent c5eb5c319f
commit a7b17cc238
2 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,9 @@ class CreateVIM(command.ShowOne):
parser.add_argument(
'name', metavar='NAME',
help=_('Set a name for the VIM'))
parser.add_argument(
'--tenant-id', metavar='TENANT_ID',
help=_('The owner tenant ID or project ID'))
parser.add_argument(
'--config-file',
required=True,

View File

@ -55,6 +55,9 @@ class CreateVNFD(command.ShowOne):
parser.add_argument(
'name', metavar='NAME',
help=_('Name for VNFD'))
parser.add_argument(
'--tenant-id', metavar='TENANT_ID',
help=_('The owner tenant ID or project ID'))
parser.add_argument(
'--vnfd-file',
required=True,