fix bridge master:slave mapping by-name

Authored by sitter on Aug 13 2019, 1:43 PM.

Description

fix bridge master:slave mapping by-name

Summary:
a slave may be mapped to a master by either the uuid of the master OR
the connection name of the master.

upon widget construction we'll store our current name and if it is the
one referenced by the slave we consider ourselves master of that slave.

also partially unpack the if condition so it's a bit easier on the eyes
with the newly added complexity

Test Plan:

nmcli c add type bridge ifname br0 autoconnect yes con-name br0 stp off
nmcli c add type bridge-slave autoconnect yes con-name enp4s0 ifname enp4s0 master br0

kcm correctly shows enp4s0 as slave of br0

Reviewers: jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D23125

Details

Committed
sitterAug 22 2019, 3:23 PM
Reviewer
jgrulich
Differential Revision
D23125: fix bridge master:slave mapping by-name
Parents
R116:a7eb3cb599fb: Add missing headers with DISABLE_MODEMMANAGER_SUPPORT=ON
Branches
Unknown
Tags
Unknown