From 2cafdc5e12d624a3396c4f7068f02c93f0973059 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 23 Feb 2019 18:28:47 +0100 Subject: [PATCH] [controller] ipv4 network switch fix --- p4app/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 9bcfd2d..bd17884 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -91,7 +91,7 @@ class L2Controller(object): self.controller.table_clear("v4_routing") for v4route in self.v4_routes[self.mode]: net = self.prefix_to_net(v4route['net'], self.v4_mask) - self.controller.table_add("v4_routing", "set_egress_port", [v4route['net']], [v4route['port']]) + self.controller.table_add("v4_routing", "set_egress_port", [net], [v4route['port']]) def config_hosts(self): """ Assumptions: