Fix FW rule dictionary
Change-Id: Ia484d0429e104cd4c366df25ebe63b111920d4b4
This commit is contained in:
parent
eebd6bcb13
commit
4b654b13af
@ -434,9 +434,11 @@ class NsxLibFirewallSection(utils.NsxLibApiBase):
|
||||
service = self._decide_service(sg_rule)
|
||||
name = sg_rule['id']
|
||||
|
||||
return self.get_rule_dict(name, [source],
|
||||
[destination], direction,
|
||||
ip_protocol, [service],
|
||||
return self.get_rule_dict(name, [source] if source else None,
|
||||
[destination] if destination else None,
|
||||
direction,
|
||||
ip_protocol,
|
||||
[service] if service else None,
|
||||
action, logged)
|
||||
|
||||
def create_rules(self, context, section_id, nsgroup_id,
|
||||
|
Loading…
Reference in New Issue
Block a user