-
-
Save cluther/debd922bf02514575354 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paste this into zendmd to see which networks connect which locations. | |
for n in dmd.Networks.getSubNetworks(): | |
if not n.zDrawMapLinks: continue | |
locations = set() | |
for ip in n.ipaddresses(): | |
device = ip.device() | |
if not device: continue | |
location = device.getLocationName() | |
if location: locations.add(location) | |
if len(locations) > 1: | |
print "%s connects locations:" % n.getNetworkName() | |
for location in locations: | |
print " %s" % location | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment