Use correct switch suffix

This commit is contained in:
Nico Schottelius 2019-03-05 16:15:54 +01:00
parent 3acbf88242
commit 69e483caf7

View file

@ -90,12 +90,12 @@ class L2Controller(object):
self.v6_addresses = {} self.v6_addresses = {}
self.v6_addresses[None] = [] self.v6_addresses[None] = []
self.v6_addresses['base'] = [] self.v6_addresses['base'] = []
self.v6_addresses['router'] = [ net['net'][42] for net in self.v6_routes['router'] ] self.v6_addresses['router'] = [ net['net'][self.info['switch_suffix']] for net in self.v6_routes['router'] ]
self.v4_addresses = {} self.v4_addresses = {}
self.v4_addresses[None] = [] self.v4_addresses[None] = []
self.v4_addresses['base'] = [] self.v4_addresses['base'] = []
self.v4_addresses['router'] = [ net['net'][42] for net in self.v4_routes['router'] ] self.v4_addresses['router'] = [ net['net'][self.info['switch_suffix']] for net in self.v4_routes['router'] ]
self.init_boilerplate(sw_name) self.init_boilerplate(sw_name)