[p4 debug] how to add the port

This commit is contained in:
Nico Schottelius 2019-02-26 15:47:55 +01:00
parent a92a9b82ea
commit 38995d913c
1 changed files with 4 additions and 1 deletions

View File

@ -107,8 +107,11 @@ class L2Controller(object):
self.controller.table_clear("ndp")
for port in all_ports:
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"])
def init_boilerplate(self, sw_name):