From 0e675c4f0b4d7e6b8b8bbe1c79e0025a47e4c95e Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Sun, 1 Mar 2015 12:35:47 +0100 Subject: [PATCH] Fixed rt_tables generation on OpenWrt. --- nodewatcher/modules/platforms/openwrt/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodewatcher/modules/platforms/openwrt/builder.py b/nodewatcher/modules/platforms/openwrt/builder.py index 2d13b9c83..9b94ade6b 100644 --- a/nodewatcher/modules/platforms/openwrt/builder.py +++ b/nodewatcher/modules/platforms/openwrt/builder.py @@ -46,7 +46,7 @@ def build_image(result, profile): # Prepare the routing table mappings tables = io.StringIO() - for name, identifier in cfg['_routing_tables'].items(): + for identifier, name in cfg['_routing_tables'].items(): tables.write('%s\t%s\n' % (identifier, name)) builder.write_file(os.path.join(temp_path, 'etc', 'iproute2', 'rt_tables'), tables.getvalue().encode('ascii'))