Merge "Updates in NS and VNFFG list commands"
This commit is contained in:
commit
f4e696dfe0
@ -28,8 +28,9 @@ from tackerclient.tacker import v1_0 as tackerV10
|
|||||||
_attr_map = (
|
_attr_map = (
|
||||||
('id', 'ID', tacker_osc_utils.LIST_BOTH),
|
('id', 'ID', tacker_osc_utils.LIST_BOTH),
|
||||||
('name', 'Name', tacker_osc_utils.LIST_BOTH),
|
('name', 'Name', tacker_osc_utils.LIST_BOTH),
|
||||||
('nsd_id', 'NSD ID',
|
('nsd_id', 'NSD ID', tacker_osc_utils.LIST_BOTH),
|
||||||
tacker_osc_utils.LIST_BOTH),
|
('vnf_ids', 'VNF IDs', tacker_osc_utils.LIST_BOTH),
|
||||||
|
('vnffg_ids', 'VNFFG IDs', tacker_osc_utils.LIST_BOTH),
|
||||||
('mgmt_urls', 'Mgmt Urls', tacker_osc_utils.LIST_BOTH),
|
('mgmt_urls', 'Mgmt Urls', tacker_osc_utils.LIST_BOTH),
|
||||||
('status', 'Status', tacker_osc_utils.LIST_BOTH),
|
('status', 'Status', tacker_osc_utils.LIST_BOTH),
|
||||||
)
|
)
|
||||||
|
@ -39,6 +39,7 @@ DEFAULT_ERROR_REASON_LENGTH = 100
|
|||||||
_attr_map_vnffg = (
|
_attr_map_vnffg = (
|
||||||
('id', 'ID', tacker_osc_utils.LIST_BOTH),
|
('id', 'ID', tacker_osc_utils.LIST_BOTH),
|
||||||
('name', 'Name', tacker_osc_utils.LIST_BOTH),
|
('name', 'Name', tacker_osc_utils.LIST_BOTH),
|
||||||
|
('ns_id', 'NS ID', tacker_osc_utils.LIST_BOTH),
|
||||||
('vnffgd_id', 'VNFFGD ID', tacker_osc_utils.LIST_BOTH),
|
('vnffgd_id', 'VNFFGD ID', tacker_osc_utils.LIST_BOTH),
|
||||||
('status', 'Status', tacker_osc_utils.LIST_BOTH),
|
('status', 'Status', tacker_osc_utils.LIST_BOTH),
|
||||||
('description', 'Description', tacker_osc_utils.LIST_LONG_ONLY),
|
('description', 'Description', tacker_osc_utils.LIST_LONG_ONLY),
|
||||||
|
@ -25,7 +25,8 @@ class ListNS(tackerV10.ListCommand):
|
|||||||
"""List NS that belong to a given tenant."""
|
"""List NS that belong to a given tenant."""
|
||||||
|
|
||||||
resource = _NS
|
resource = _NS
|
||||||
list_columns = ['id', 'name', 'nsd_id', 'mgmt_urls', 'status']
|
list_columns = ['id', 'name', 'nsd_id', 'vnf_ids', 'vnffg_ids',
|
||||||
|
'mgmt_urls', 'status']
|
||||||
|
|
||||||
|
|
||||||
class ShowNS(tackerV10.ShowCommand):
|
class ShowNS(tackerV10.ShowCommand):
|
||||||
|
@ -78,7 +78,8 @@ class ListVNFFG(tackerV10.ListCommand):
|
|||||||
"""List VNFFGs that belong to a given tenant."""
|
"""List VNFFGs that belong to a given tenant."""
|
||||||
|
|
||||||
resource = _VNFFG
|
resource = _VNFFG
|
||||||
list_columns = ['id', 'name', 'description', 'status', 'vnffgd_id']
|
list_columns = ['id', 'name', 'ns_id',
|
||||||
|
'description', 'status', 'vnffgd_id']
|
||||||
|
|
||||||
|
|
||||||
class ShowVNFFG(tackerV10.ShowCommand):
|
class ShowVNFFG(tackerV10.ShowCommand):
|
||||||
|
Loading…
Reference in New Issue
Block a user