Skip to content

Commit

Permalink
Fixed rt_tables generation on OpenWrt.
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Mar 1, 2015
1 parent 07512c2 commit 0e675c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodewatcher/modules/platforms/openwrt/builder.py
Expand Up @@ -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'))

Expand Down

0 comments on commit 0e675c4

Please sign in to comment.