From 5d422e5f68bbc90f57bbd17226b1fe146d0c6b2a Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Thu, 2 Jul 2020 16:36:49 +0200 Subject: [PATCH] WIP: fix typo --- topos/multi_interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/topos/multi_interface.py b/topos/multi_interface.py index f009862..ec09bb4 100644 --- a/topos/multi_interface.py +++ b/topos/multi_interface.py @@ -66,7 +66,7 @@ class MultiInterfaceConfig(TopoConfig): i) self.topo.command_to(self.client, cmd) - for i in range(int(self.topo_parameter.get(TopoParameter.SERVER_PATHS))): + for i in range(int(self.topo.topo_parameter.get(TopoParameter.SERVER_PATHS))): cmd = self.add_table_route_command(self.get_server_ip(i), i) self.topo.command_to(self.server, cmd) @@ -114,7 +114,7 @@ class MultiInterfaceConfig(TopoConfig): self.topo.command_to(self.client, "arp -s {} {}".format( self.get_router_ip_to_client_switch(i), router_interface_mac)) - for i in range(int(self.topo_parameter.get(TopoParameter.SERVER_PATHS))): + for i in range(int(self.topo.topo_parameter.get(TopoParameter.SERVER_PATHS))): cmd = self.interface_up_command(self.get_router_interface_to_server(i), self.get_router_ip_to_server_switch(i), netmask) self.topo.command_to(self.router, cmd) @@ -122,7 +122,7 @@ class MultiInterfaceConfig(TopoConfig): self.topo.command_to(self.server, "arp -s {} {}".format( self.get_router_ip_to_server_switch(i), router_interface_mac)) - for i in range(int(self.topo_parameter.get(TopoParameter.SERVER_PATHS))): + for i in range(int(self.topo.topo_parameter.get(TopoParameter.SERVER_PATHS))): cmd = self.interface_up_command(self.get_server_interface(i), self.get_server_ip(i), netmask) self.topo.command_to(self.server, cmd) server_interface_mac = self.server.intf(self.get_server_interface(i)).MAC()