From e51ed3ffcd13d2d13dd9d88d28889b020a9fda03 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 4 Mar 2019 19:02:28 +0100 Subject: [PATCH] Change action argument order Fixing: Invalid runtime data: Error while parsing 2001:db8::2a - Invalid input, could not cast to integer, try in hex with 0x prefix Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix Invalid runtime data: Error while parsing 2001:db8:0:1::2a - Invalid input, could not cast to integer, try in hex with 0x prefix Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix --- p4app/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index 73c8a78..6cdb209 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -173,8 +173,8 @@ class L2Controller(object): for v6addr in self.v6_addresses[self.mode]: icmp6_addr = self.gen_ndp_multicast_addr(v6addr) - self.controller.table_add("v6_addresses", "controller_reply", [str(self.task['ICMP6_GENERAL'])], [str(v6addr)]) - self.controller.table_add("v6_addresses", "controller_reply", [str(self.task['ICMP6_NS'])], [str(icmp6_addr)]) + self.controller.table_add("v6_addresses", "controller_reply", [str(v6addr)], [str(self.task['ICMP6_GENERAL'])]) + self.controller.table_add("v6_addresses", "controller_reply", [str(icmp6_addr)], [str(self.task['ICMP6_NS'])]) def config_hosts(self): """ Assumptions: