From 028a7391392688b1c7c767056f4dc967e174aad8 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Tue, 28 Aug 2018 15:34:57 +0200 Subject: print unrecognized model info, but be quiet about no vlans --- code/vlanscrape | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/vlanscrape') 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: -- cgit v1.1