diff --git a/networkxtest.py b/networkxtest.py index dfa1a5cd02989a2eb904ba16e9ad196c60ed3093..bf0b1b38f842cb15a1364fdf6e909829f6dc6503 100644 --- a/networkxtest.py +++ b/networkxtest.py @@ -124,8 +124,10 @@ def checkroutings(): if j == x.name: for pindex, p in enumerate(x.networks): if searchedNetwork == p: - print(p) + #print(p) if searchedMask != x.masks[pindex]: + print(x.smasks[pindex]) + p = open("host.txt", "w") p.write(x.name) f = open("repairmask.txt", "w") @@ -140,8 +142,10 @@ def checkroutings(): #print(elozo.ips[index]) for pindex, p in enumerate(x.sroutes): if searchedNetwork == p: - print("das") + #print("das") if searchedMask != x.smasks[pindex]: + print(x.smasks[pindex]) + print(j) p = open("host.txt", "w") p.write(x.name) f = open("repairmask.txt", "w")