end of day

This commit is contained in:
Marek Wolan
2023-09-25 19:17:57 +01:00
parent 493014ca19
commit f79ed99bd2
2 changed files with 51 additions and 37 deletions

File diff suppressed because one or more lines are too long

View File

@@ -60,11 +60,11 @@ class ACLRule(SimComponent):
"""
state = super().describe_state()
state["action"] = self.action.value
state["protocol"] = self.protocol.value
state["src_ip_address"] = self.src_ip_address
state["src_port"] = self.src_port.value
state["dst_ip_address"] = self.dst_ip_address
state["dst_port"] = self.dst_port.value
state["protocol"] = self.protocol.value if self.protocol else None
state["src_ip_address"] = self.src_ip_address if self.src_ip_address else None
state["src_port"] = self.src_port.value if self.src_port else None
state["dst_ip_address"] = self.dst_ip_address if self.dst_ip_address else None
state["dst_port"] = self.dst_port.value if self.dst_port else None
return state