[node-patches] Change in ovirt-node[refs/master]: Avoiding displaying vdsmdummy network

tlitovsk at redhat.com tlitovsk at redhat.com
Sun Nov 8 15:01:16 UTC 2015


Anatoly Litovsky has uploaded a new change for review.

Change subject: Avoiding displaying vdsmdummy network
......................................................................

Avoiding displaying vdsmdummy network

or any other network starting with ; for this matter

Change-Id: Id378a054241fa9d4559b2ef6376af7f96bd68474
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1275226
Signed-off-by: Tolik Litovsky <tlitovsk at redhat.com>
---
M src/ovirt/node/setup/core/network_page.py
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/44/48244/1

diff --git a/src/ovirt/node/setup/core/network_page.py b/src/ovirt/node/setup/core/network_page.py
index bab2212..c8ef38f 100644
--- a/src/ovirt/node/setup/core/network_page.py
+++ b/src/ovirt/node/setup/core/network_page.py
@@ -90,16 +90,18 @@
         nics = model.nics(filter_slaveless=True,
                           filter_configured=filter_configured)
         for name, nic in sorted(nics.items()):
+            if nic.ifname.startswith(";"):
+                continue
             if first_nic is None:
                 first_nic = name
             if has_managed_ifnames():
                 is_cfg = "Managed"
             else:
                 is_cfg = ("Configured" if nic.is_configured() else
-                          "Unconfigured")
+                              "Unconfigured")
 
             fields = self.__build_fields(nic, is_cfg, has_managed_ifnames(),
-                                         system.has_systemd())
+                                             system.has_systemd())
 
             description = " ".join(fields)
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id378a054241fa9d4559b2ef6376af7f96bd68474
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: refs/master
Gerrit-Owner: Anatoly Litovsky <tlitovsk at redhat.com>



More information about the node-patches mailing list