Sign up using Facebook. Any help is appreciated. It works until it finds a subnet not contained in another subnet. If I could somehow get around this error and have it ignore that entry and keep comparing the rest, I think it could work. I have this file to start: Post as a guest Name. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies.

Uploader: Taugore
Date Added: 19 August 2016
File Size: 57.51 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 93279
Price: Free* [*Free Regsitration Required]

Stack Overflow works best with JavaScript enabled. To prevent duplicate lines if line3[‘Range’]. I apologize for anything that may be obvious I am missing, I am still a beginner at programming. There are two problems I am having with this code:.

By clicking “Post Your 10.622, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Editing csv file to edit subnets so there is no overlap in IP ranges ipaddress module in Python 3.

~ ( /16) IP Address Range Location | SG IP network tools

Both of my issues were solved by reordering the if statements and correctly resetting the iterator. I have been playing around with the ipaddress module in Python 3.

  MP220 WINDOWS 8 DRIVER DOWNLOAD

I have this file to start: When the subnets are written to file3 they always use the first Zone Name “Group A” no matter what the name is supposed to be. I have tried to stop this from happening by using the if statements above to make sure that the lines overlap and that the IP subnet being excluded has a larger subnet mask than the one excluding but it is obviously not working and I have tried a lot of different things to try to make them work putting them after all the for statements, etc.

There continues to be issues with the code, but my questions here have been answered. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. There are two problems I am having with this code: Sign up using Email and Password. To avoid “Not contained in” errors if line3[‘Range’].

Any help is appreciated. Sign up or log in Sign up using Google. Post as a guest Name. If I could somehow get around this error and have it ignore that entry and keep comparing the rest, I think it could work.

  MOATES OSTRICH DRIVER DOWNLOAD

IP addresses 10.62.0.0 to 10.62.0.255

It works until it finds a subnet not contained in another subnet. Tests for IP overlap for line4 in read4: Email Required, but never shown.

With this code I am 00. to get the new subnets with the correct names to write to file 3. Both file1 and file2 are the starting file in the beginning of the code comparing it to itself, basically. CircuitB0T 1 4 Tests for IP overlap if line3[‘Range’].

IP Address Location Details

Then it returns ValueError: Sign up using Facebook. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our 10.622 terms of serviceprivacy policy and cookie policy 01.62, and that your continued use of the website is subject to these policies.

This is my current code and it works better: I have been trying to create a csv file that will change all the subnets and IP address ranges so none overlap. This is my code so far: