Merge "Add method to get firewall rule in nsxv3 client"

This commit is contained in:
Jenkins 2016-02-05 18:30:42 +00:00 committed by Gerrit Code Review
commit e73a91a99f

View File

@ -274,6 +274,14 @@ class NSXV3Client(object):
response = self.get(endpoint=endpoint)
return response.json()['results']
def get_firewall_section_rule(self, fw_section, os_uuid):
"""
Get the firewall section rule based on the name
"""
fw_rules = self.get_firewall_section_rules(fw_section)
nsx_name = os_uuid
return self.get_nsx_resource_by_name(fw_rules, nsx_name)
def get_ns_groups(self):
"""
Retrieve all NSGroups on NSX backend