From ed27a8e77c5bb707c975b0a498c704086f9adc87 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 26 Feb 2019 15:49:47 +0100 Subject: [PATCH] [controller] stringify all parts for the table --- p4app/controller.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index f9ad271..37067f7 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -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):