项目作者: covarrjes

项目描述 :
IPv4 Variable Length Subnet Mask Calculator
高级语言: Python
项目地址: git://github.com/covarrjes/vlsm_calculator.git
创建时间: 2021-03-10T21:19:11Z
项目社区:https://github.com/covarrjes/vlsm_calculator

开源协议:

下载


VLSM Calculator

An IPv4 subnets calculator using original host, original subnet mask and desired subnet mask.

To Do List

  • Clean up variable names (host vs network address confusion)
  • Verify & correct subnet mask inversion -> broadcast address
  • Build test cases
  • Determine how to use subnets.py in relation to the for loop based on subnet count

Bug fixes

  • convert_decimal(): “int() can’t convert non-string with explicit base” when converting broadcast address
    fix: int(str(binary[]))
  • invert_subnet_mask(): was returning 0 instead of inverted array & was checking if == 1 instead of ‘1’

References

IP Addressing and Subnetting for New Users

IP Calculator for Double Checking Results

License

MIT