summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-08-28 15:34:57 +0200
committerJon Clausen <jac@nordu.net>2018-08-28 15:34:57 +0200
commit028a7391392688b1c7c767056f4dc967e174aad8 (patch)
tree75ed4bfb19057b3f1ea9ca3e48f15e4f11b22fda
parent08e39677ad3cc3a2f939a921a88fb04eb33707c6 (diff)
print unrecognized model info, but be quiet about no vlans
-rwxr-xr-xcode/vlanscrape5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/vlanscrape b/code/vlanscrape
index 44411fc..56b8b0a 100755
--- a/code/vlanscrape
+++ b/code/vlanscrape
@@ -157,7 +157,8 @@ def check_out_vs_dst(hostName, vlanList):
outFile = outputDir + "/" + hostName
outList = []
if (len(vlanList) == 1) and ("none" in vlanList[0]):
- print "no vlans in", hostName
+ #print "no vlans in", hostName
+ pass
else:
for l in sorted(vlanList, key=lambda x: int(x[0])):
o=''
@@ -217,7 +218,7 @@ def is_juniper(hostName):
elif "unset" in model:
print "Model info missing for", hostName, "- skipping"
else:
- print "model not recognized, skipping"
+ print "model", model, "not recognized, skipping:", hostName
try: