From 25405a6ae182046ead3bc88ebf68907ce63a086e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 6 Mar 2019 14:00:35 +0100 Subject: [PATCH] [controller] stringify router --- p4app/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index dad028c..3f678df 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -194,7 +194,7 @@ class L2Controller(object): dev = "{}-eth0".format(host) net = v6route['net'] ipaddr = "{}/{}".format(net[1],net.prefixlen) - router = net[self.info['switch_suffix']] + router = str(net[self.info['switch_suffix']]) self.config_v6_host(host, str(net), str(ipaddr), dev, router)