On Mon, 11 Apr 2011 14:47:26 -0500 Ted Zlatanov <t...@lifelogs.com> wrote:
TZ> Detecting new interfaces can be done with ifconfig -a, again, or by TZ> looking at /proc/net/dev. Actually it would be really nice if cfengine produced the list of interfaces in addition to the current net_iface_* classes. It's already traversing the list of interfaces and providing sys.ipv4 so collecting their names in a sys.interfaces slist would be useful. I think it would be useful information to know the network driver, maybe as the mapped value if the key is the interface name. getindices("sys.ipv4") won't work with Infiniband interfaces, for instance (they can be sometimes configured with IPv4 addresses but it's not standard or reliable), and probably won't work with IPv6 according to the docs. So knowledge of the driver would really help there, instead of relying on the interface name to match some regex as we do now. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine