NSXv3: Require target_type when adding to firewall exclude list
Change-Id: Ic7fe85f3a01d2f8841509a4f931e0137a08ec6e7
This commit is contained in:
parent
c540b0f61f
commit
b990e0a547
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user