reset memories for second run

master
Frederik Maaßen 2 years ago
parent afa707f9dc
commit d6ed581625
  1. 7
      implementation/mininet_controller.py

@ -607,7 +607,14 @@ def run(topology, test=None, limit=None, delay=None, shortcut=False):
# if we want to create a timed failure (maybe while pinging), we can use a timer
# router2_failure = Timer(15, introduce_failure(net["r2"], "r2-eth3"))
global packet_counter_initialized
global packet_counter_memory
global shortcut_nftables_memory
# reset values in case of second execution in runtime
packet_counter_initialized = False
packet_counter_memory = []
shortcut_nftables_memory = []
net.start()
# CLI(net)
n = 1