From ee88416cbe69c27d913457272241345fb95e03a3 Mon Sep 17 00:00:00 2001 From: Amey Bhide <abhide@vmware.com> Date: Mon, 30 Nov 2015 15:24:32 -0800 Subject: [PATCH] Add nsx-update to supported ops nsx-update was missing from list of supported ops for dhcp-binding and edges resources Change-Id: Idb4cc0360d267e2d1166e9947e6dc26bcdaff19c --- tools/python-nsxadmin/admin/shell.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/python-nsxadmin/admin/shell.py b/tools/python-nsxadmin/admin/shell.py index de6931d409..8bfbf77199 100644 --- a/tools/python-nsxadmin/admin/shell.py +++ b/tools/python-nsxadmin/admin/shell.py @@ -81,11 +81,13 @@ nsxv3_resources = { # Add supported NSX-V resources in this dictionary nsxv_resources = { constants.EDGES: Resource(constants.EDGES, [Operations.LIST.name, - Operations.CLEAN.name]), + Operations.CLEAN.name, + Operations.NSX_UPDATE.value]), constants.SPOOFGUARD_POLICY: Resource(constants.SPOOFGUARD_POLICY, [Operations.LIST.name]), constants.DHCP_BINDING: Resource(constants.DHCP_BINDING, - [Operations.LIST.name]), + [Operations.LIST.name, + Operations.NSX_UPDATE.value]), } nsxv3_resources_names = map(lambda res: res.name, nsxv3_resources.itervalues())