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)
|
service = self._decide_service(sg_rule)
|
||||||
name = sg_rule['id']
|
name = sg_rule['id']
|
||||||
|
|
||||||
return self.get_rule_dict(name, [source],
|
return self.get_rule_dict(name, [source] if source else None,
|
||||||
[destination], direction,
|
[destination] if destination else None,
|
||||||
ip_protocol, [service],
|
direction,
|
||||||
|
ip_protocol,
|
||||||
|
[service] if service else None,
|
||||||
action, logged)
|
action, logged)
|
||||||
|
|
||||||
def create_rules(self, context, section_id, nsgroup_id,
|
def create_rules(self, context, section_id, nsgroup_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user