derive addr from addr not dict

This commit is contained in:
Nico Schottelius 2019-03-04 14:59:44 +01:00
parent 7c3cb5a368
commit 3dc56677a1

View file

@ -167,7 +167,7 @@ class L2Controller(object):
self.controller.table_clear("v6_addresses") self.controller.table_clear("v6_addresses")
for v6addr in self.v6_addresses[self.mode]: for v6addr in self.v6_addresses[self.mode]:
icmp6_addr = str(self.gen_ndp_multicast_addr(v6addr)) icmp6_addr = str(self.gen_ndp_multicast_addr(v6addr['addr']))
self.controller.table_add("v6_addresses", "controller_reply", [v6addr['addr']]) self.controller.table_add("v6_addresses", "controller_reply", [v6addr['addr']])
self.controller.table_add("v6_addresses", "controller_reply", [icmp6_addr]) self.controller.table_add("v6_addresses", "controller_reply", [icmp6_addr])