From 9edafa1e35b5bdae52a611339cf1bfd67f3801f0 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Fri, 7 Sep 2012 14:56:52 +0200 Subject: [PATCH] Version 2012-09-07 14:56 M src/hostinfo/yp.py --- src/hostinfo/yp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hostinfo/yp.py b/src/hostinfo/yp.py index f0b4105..d05f7be 100755 --- a/src/hostinfo/yp.py +++ b/src/hostinfo/yp.py @@ -103,7 +103,8 @@ def netgroup(tree): pass pass for g in tree._host_._interface_._netgroup_: - for ip in filter(lambda ip: not ip.alias[0] and not ip.vlan[0], + for ip in filter(lambda ip: (not ip.alias[0] and not ip.vlan[0] and + not ip.never[0]), g._parent._ip_): if not g.name[0:] in netgroup: netgroup[g.name[0:]] = [ ] -- GitLab