fixes possible ping issue
This commit is contained in:
parent
adf0959324
commit
c85ae9290f
@ -207,10 +207,10 @@ class MultiInterfaceConfig(TopoConfig):
|
|||||||
return "{}{}.0/24".format(self.param.get(TopoParameter.RIGHT_SUBNET), interface_index)
|
return "{}{}.0/24".format(self.param.get(TopoParameter.RIGHT_SUBNET), interface_index)
|
||||||
|
|
||||||
def client_interface_count(self):
|
def client_interface_count(self):
|
||||||
return len(self.topo.c2r_client_switches)
|
return max(len(self.topo.c2r_client_switches), 1)
|
||||||
|
|
||||||
def server_interface_count(self):
|
def server_interface_count(self):
|
||||||
return len(self.topo.r2s_server_switches)
|
return max(len(self.topo.r2s_server_switches), 1)
|
||||||
|
|
||||||
def get_router_interface_to_server_switch(self, switch_index):
|
def get_router_interface_to_server_switch(self, switch_index):
|
||||||
return self.get_router_interface_to_client_switch(len(self.topo.c2r_router_switches) + switch_index)
|
return self.get_router_interface_to_client_switch(len(self.topo.c2r_router_switches) + switch_index)
|
||||||
|
Loading…
Reference in New Issue
Block a user