Refactoring of security-groups operation
Mostly eliminates nsx-api calls within a database transactions Change-Id: If367af129773ec20341df516b4f6015c8dd830ce
This commit is contained in:
@@ -128,8 +128,8 @@ class NsxSecurityGroupUtils(object):
|
||||
pairs.append(pair)
|
||||
return pairs
|
||||
|
||||
def insert_rule_in_section(self, section, nsx_rule):
|
||||
section.insert(0, nsx_rule)
|
||||
def extend_section_with_rules(self, section, nsx_rules):
|
||||
section.extend(nsx_rules)
|
||||
|
||||
def parse_section(self, xml_string):
|
||||
return et.fromstring(xml_string)
|
||||
|
||||
Reference in New Issue
Block a user