end of day
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -60,11 +60,11 @@ class ACLRule(SimComponent):
|
|||||||
"""
|
"""
|
||||||
state = super().describe_state()
|
state = super().describe_state()
|
||||||
state["action"] = self.action.value
|
state["action"] = self.action.value
|
||||||
state["protocol"] = self.protocol.value
|
state["protocol"] = self.protocol.value if self.protocol else None
|
||||||
state["src_ip_address"] = self.src_ip_address
|
state["src_ip_address"] = self.src_ip_address if self.src_ip_address else None
|
||||||
state["src_port"] = self.src_port.value
|
state["src_port"] = self.src_port.value if self.src_port else None
|
||||||
state["dst_ip_address"] = self.dst_ip_address
|
state["dst_ip_address"] = self.dst_ip_address if self.dst_ip_address else None
|
||||||
state["dst_port"] = self.dst_port.value
|
state["dst_port"] = self.dst_port.value if self.dst_port else None
|
||||||
return state
|
return state
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user