From a7b17cc23898b110d9a56fca70fcb16b43e050cc Mon Sep 17 00:00:00 2001 From: Nguyen Hai Date: Thu, 22 Feb 2018 03:09:08 +0900 Subject: [PATCH] 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 --- tackerclient/osc/v1/nfvo/vim.py | 3 +++ tackerclient/osc/v1/vnfm/vnfd.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tackerclient/osc/v1/nfvo/vim.py b/tackerclient/osc/v1/nfvo/vim.py index 99cb99bd..3ab883c0 100644 --- a/tackerclient/osc/v1/nfvo/vim.py +++ b/tackerclient/osc/v1/nfvo/vim.py @@ -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, diff --git a/tackerclient/osc/v1/vnfm/vnfd.py b/tackerclient/osc/v1/vnfm/vnfd.py index 68522e11..2d2bc850 100644 --- a/tackerclient/osc/v1/vnfm/vnfd.py +++ b/tackerclient/osc/v1/vnfm/vnfd.py @@ -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,