From Dan Kenigsberg <[email protected]>:

Dan Kenigsberg has submitted this change and it was merged.

Change subject: net: vlan@bond config with ifcfg requires hwaddrs sync check
......................................................................


net: vlan@bond config with ifcfg requires hwaddrs sync check

Bonds are expected to inherit one of its slaves mac address, but in some
cases (mainly when its slaves are detached temporary) the bond is left
with its own generated address. In such scenarios, a VLAN which may be
configured over it will inherit its temporary address and stick with it.
At the time the slaves re-attach to the bond, the VLAN interface will
not have the same address as the bond.

This has been identified as a problem when adding a network over an
existing vlan@bond NM setup.

With this patch, when the ifcfg configurator attempts to configure
a vlan over a bond, it will check post the ifup if the slave-bond-vlan
mac addresses are in sync.
In case they are not, the vlan is taken down (ifdown) and recreated.

Change-Id: I8fc13f42ec21fef1e62f326981742bd66a792429
Bug-Url: https://bugzilla.redhat.com/1414323
Signed-off-by: Edward Haas <[email protected]>
---
M lib/vdsm/network/configurators/ifcfg.py
1 file changed, 41 insertions(+), 3 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Petr Horáček: Looks good to me, but someone else must approve
  Dan Kenigsberg: Looks good to me, approved
  Edward Haas: Verified



-- 
To view, visit https://gerrit.ovirt.org/71204
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8fc13f42ec21fef1e62f326981742bd66a792429
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Edward Haas <[email protected]>
Gerrit-Reviewer: Anonymous Coward #1001177
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Edward Haas <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Michael Burman <[email protected]>
Gerrit-Reviewer: Petr Horáček <[email protected]>
Gerrit-Reviewer: gerrit-hooks <[email protected]>
_______________________________________________
vdsm-patches mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to