Skip to content

Commit

Permalink
openvswitch.py fix fake bridge parent
Browse files Browse the repository at this point in the history
This fixes issue #313 where the ovs_bridge parameter
for fake bridges was not applied.

This fix is backward compatible to the workaround where
the parent bridge name is repeated at the beginning of the
ovs_options parameter.
  • Loading branch information
lachbaer committed Oct 15, 2024
1 parent 9d46313 commit d4ac2a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ifupdown2/addons/openvswitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ def _addbridge (self, ifaceobj):

cmd = "--may-exist add-br %s"%(iface)
if ovsparent is not None and ovsoptions:
cmd = cmd + " %s" %(ovsoptions)
if ovsoptions.startswith(ovsparent):
# for backwards compatibility to previous bug in parent configuration
cmd = cmd + " %s" %(ovsoptions)
else:
cmd = cmd + " %s %s" %(ovsparent, ovsoptions)

cmd_list.append(cmd)

Expand Down

0 comments on commit d4ac2a6

Please sign in to comment.