Fix handling of linux bond interfaces

At present linux bonds will be ignored when mentioned directly
in configuration options parsed by the ``BridgePortInterface``
data structure.

If a mac address of a physical interface making up the bond is
listed the code correctly finds the bond name and adds that to
the bridge.

Virtual interfaces are ignored when then map is built, linux bonds
are virtual interfaces.

This patch fixes the problem by checking physical interfaces for
bond membership while building the map. If an interface is member
of a bond add the bond name to the map.

Previously the bond membership check was only done when looking
up interface name from mac after building the map.

Change-Id: I941609236ff2bad62b191d0adf4a36bd2b34a42b
Closes-Bug: #1883244
This commit is contained in:
Frode Nordahl 2020-06-13 09:01:11 +02:00
parent 761993362e
commit 662c34b564
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
# when dependencies of the charm change,
# but nothing in the charm needs to.
# simply change the uuid to something new
91f22e00-a4d0-11ea-8f27-fbe26c8b1265
e60d54a2-17c2-4aea-9662-80bbdcb3f1bb