From b990e0a5474d57057b184048b7f0adbc0d9a2881 Mon Sep 17 00:00:00 2001 From: Roey Chen Date: Sun, 4 Dec 2016 15:01:46 -0800 Subject: [PATCH] NSXv3: Require target_type when adding to firewall exclude list Change-Id: Ic7fe85f3a01d2f8841509a4f931e0137a08ec6e7 --- vmware_nsxlib/v3/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsxlib/v3/security.py b/vmware_nsxlib/v3/security.py index 8c89d490..66d98ebd 100644 --- a/vmware_nsxlib/v3/security.py +++ b/vmware_nsxlib/v3/security.py @@ -211,10 +211,10 @@ class NsxLibNsGroup(utils.NsxLibApiBase): class NsxLibFirewallSection(utils.NsxLibApiBase): - def add_member_to_fw_exclude_list(self, target_id): + def add_member_to_fw_exclude_list(self, target_id, target_type): resource = 'firewall/excludelist?action=add_member' body = {"target_id": target_id, - "target_type": consts.TARGET_TYPE_LOGICAL_PORT} + "target_type": target_type} self.client.create(resource, body) def remove_member_from_fw_exclude_list(self, target_id, target_type):