diff --git a/src/hostinfo/yp.py b/src/hostinfo/yp.py index f0b410598a128ba1149dc0ccc8d51e7684e2c570..d05f7be242cf7a667f671800ca7977c57d9deb67 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:]] = [ ]