[Admin-util][NSXv3] Fix help message for secgroups

The security-groups resource for the nsxv3 plugin listed
the wrong list of supported operations in the help message,
which included some ops like list-mismatches etc which were
not supported. This patch fixes that and only lists the ops
that are implemented in the help message.

$ nsxadmin -r security-groups
NSX Plugin in use: nsxv3
Supported list of operations for the NSX-V3 resource ['clean', 'list',
'nsx-list', 'nsx-clean', 'neutron-list', 'neutron-clean']

Change-Id: I7a259bf770e5a21d29ce9749ae2c236a1302b177
This commit is contained in:
Akash Gangil
2016-04-20 06:54:17 -07:00
parent 4ac07c9602
commit 2d060793cd

View File

@@ -76,7 +76,13 @@ class Resource(object):
# Add supported NSX-V3 resources in this dictionary
nsxv3_resources = {
constants.SECURITY_GROUPS: Resource(constants.SECURITY_GROUPS, ops)
constants.SECURITY_GROUPS: Resource(constants.SECURITY_GROUPS,
[Operations.CLEAN.value,
Operations.LIST.value,
Operations.NSX_LIST.value,
Operations.NSX_CLEAN.value,
Operations.NEUTRON_LIST.value,
Operations.NEUTRON_CLEAN.value])
}
# Add supported NSX-V resources in this dictionary