[controller] stringify all parts for the table

This commit is contained in:
Nico Schottelius 2019-02-26 15:49:47 +01:00
parent 38995d913c
commit ed27a8e77c

View file

@ -107,11 +107,8 @@ class L2Controller(object):
self.controller.table_clear("ndp")
for port in ["4"]:
self.controller.table_add("ndp", "multicast_pkg", [ndp_prefix, port], ["1"])
self.controller.table_add("ndp", "multicast_pkg", [ndp_prefix, port], [1])
self.controller.table_add("ndp", "multicast_pkg", [ndp_prefix, port], [port])
self.controller.table_add("ndp", "multicast_pkg", ["ff02::1:ff00:0/104", "3"], ["3"])
for port in all_ports:
self.controller.table_add("ndp", "multicast_pkg", [ndp_prefix, str(port)], [str(port)])
def init_boilerplate(self, sw_name):