Merge lp:~codygarver/switchboard-plug-networking/fix-1639653 into lp:~elementary-pantheon/switchboard-plug-networking/trunk

Proposed by Cody Garver
Status: Merged
Approved by: Adam Bieńkowski
Approved revision: 362
Merged at revision: 362
Proposed branch: lp:~codygarver/switchboard-plug-networking/fix-1639653
Merge into: lp:~elementary-pantheon/switchboard-plug-networking/trunk
Diff against target: 12 lines (+2/-1)
1 file modified
src/common/Widgets/NMVisualizer.vala (+2/-1)
To merge this branch: bzr merge lp:~codygarver/switchboard-plug-networking/fix-1639653
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+313938@code.launchpad.net

Commit message

Ignore veth interfaces (lp:1639653)

Description of the change

While running docker containers, the plug shows a bunch of veth interfaces. This change excludes any interface that begins with "veth".

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/common/Widgets/NMVisualizer.vala'
2--- src/common/Widgets/NMVisualizer.vala 2016-07-24 22:04:55 +0000
3+++ src/common/Widgets/NMVisualizer.vala 2017-01-01 13:28:24 +0000
4@@ -92,7 +92,8 @@
5
6 private void device_added_cb (NM.Device device) {
7 if (device.get_iface ().has_prefix ("vmnet") ||
8- device.get_iface ().has_prefix ("lo")) {
9+ device.get_iface ().has_prefix ("lo") ||
10+ device.get_iface ().has_prefix ("veth")) {
11 return;
12 }
13

Subscribers

People subscribed via source and target branches