We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6090d9 + 9a6c067 commit 46771e9Copy full SHA for 46771e9
p4utils/mininetlib/apptopo.py
@@ -292,7 +292,6 @@ def l3_assignment_strategy(self):
292
if self.is_host_link(link):
293
host_name = link[self.get_host_position(link)]
294
if self.check_host_valid_ip_from_name(host_name):
295
-
296
direct_sw = link[self.get_sw_position(link)]
297
sw_id = sw_to_id[direct_sw]
298
host_num = int(host_name[1:])
@@ -322,6 +321,7 @@ def l3_assignment_strategy(self):
322
321
while ("10.%d.%d.2" % (sw_id, host_num)) in self.reserved_ips.values():
323
host_num +=1
324
assert host_num < 254
+ sw_to_next_available_host_id[direct_sw] = host_num + 1
325
host_ip = "10.%d.%d.2" % (sw_id, host_num)
326
host_gw = "10.%d.%d.1" % (sw_id, host_num)
327
0 commit comments