Sorry about that.. the correct code would call the getNextHopIp method on that
route object.
Code:
print "Default gateways:"
for d in dmd.Devices.getSubDevices():
gateway = "Unknown"
try:
gateway = d.os.routes._getOb("0.0.0.0_0").getNextHopIp()
except AttributeError:
pass
print " %s: %s" % (d.id, gateway)
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=33490#33490
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users