- ### 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)