Commit e10352ef authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Hejing Li
Browse files

experiments: add instantiate method for NS3E2ENet

Subclasses can override to set up more state before the rest of the
initialization for running occurs.
parent 6ad9de5a
......@@ -954,8 +954,12 @@ class NS3E2ENet(NetSim):
self, e2e_sim.simbricks_component
)
def instantiate(self):
pass
def run_cmd(self, env):
if self.first_run:
self.instantiate()
for topo in self.e2e_topologies:
topo.add_to_network(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment