From 38995d913c3c6b81df6988bb43415f06438e89ea Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 26 Feb 2019 15:47:55 +0100 Subject: [PATCH] [p4 debug] how to add the port --- p4app/controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 447f50b..f9ad271 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -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):