Skip to content

Commit

Permalink
[openwrt] Fixed repeated bridge gateway case
Browse files Browse the repository at this point in the history
Bug inadvertently introduced in 4f8d105
  • Loading branch information
nemesifier committed Jun 23, 2017
1 parent 4f8d105 commit 5f8483e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netjsonconfig/backends/openwrt/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f8483e

Please sign in to comment.