#1859 - Made some fixes to resets. Still an issue with the Router reset.

This commit is contained in:
Chris McCarthy
2023-11-28 00:21:41 +00:00
parent 58e9033a4c
commit 39dfbb741f
4 changed files with 17 additions and 2 deletions

View File

@@ -667,6 +667,10 @@ class Router(Node):
"""Reset the original state of the SimComponent."""
self.arp.clear()
self.acl.reset_component_for_episode(episode)
for i, nic in self.ethernet_ports.items():
nic.reset_component_for_episode(episode)
self.enable_port(i)
super().reset_component_for_episode(episode)
def _init_request_manager(self) -> RequestManager: