Skip to content
Browse files

[openwrt] Fixed repeated bridge gateway case

Bug inadvertently introduced in 4f8d105
  • Loading branch information
nemesisdesign committed Jun 23, 2017
1 parent 4f8d105 commit 5f8483e648c33647166b45bb3a11c028e16492fe
Showing with 3 additions and 2 deletions.
  1. +3 −2 netjsonconfig/backends/openwrt/
@@ -215,8 +215,9 @@ def __get_bridge(self, interface, i):
# to these physical names
interface['ifname'] = 'br-{ifname}'.format(**interface)
# do not repeat bridge attributes (they have already been processed)
del interface['type']
del interface['bridge_members']
for attr in ['type', 'bridge_members', 'stp', 'gateway']:
if attr in interface:
del interface[attr]
elif interface['type'] != 'bridge':
del interface['type']
return interface

0 comments on commit 5f8483e

Please sign in to comment.