return rms
def _configure_object(self):
- ### node.AggregateObject(PacketSocketFactory())
- uuid_packet_socket_factory = self.simulation.create("PacketSocketFactory")
- self.simulation.invoke(self.uuid, "AggregateObject", uuid_packet_socket_factory)
+ if self.get("enableStack"):
+ uuid_stack_helper = self.simulation.create("InternetStackHelper")
+ self.simulation.invoke(uuid_stack_helper, "Install", self.uuid)
+ else:
+ ### node.AggregateObject(PacketSocketFactory())
+ uuid_packet_socket_factory = self.simulation.create("PacketSocketFactory")
+ self.simulation.invoke(self.uuid, "AggregateObject", uuid_packet_socket_factory)
dceapplications = self.dceapplications
if dceapplications:
if ipv4:
self.simulation.invoke(self.uuid, "AggregateObject", ipv4.uuid)
- if self.get("enableStack"):
- uuid_stack_helper = self.simulation.create("InternetStackHelper")
- self.simulation.invoke(uuid_stack_helper, "Install", self.uuid)
-
mobility = self.mobility
if mobility:
self.simulation.invoke(self.uuid, "AggregateObject", mobility.uuid)
ec.shutdown()
def test_dce_ccnpeek_local_with_stack(self):
- ec = ExperimentController(exp_id = "testdcepeeklostack")
+ ec = ExperimentController(exp_id = "test-dce-ccnpeek-lostack")
node = ec.register_resource("LinuxNode")
ec.set(node, "hostname", "localhost")