Using Python ipaddress module to find if subnet/ip is within a bigger subnet

前端 未结 0 1700
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 11:32

import ipaddress from itertools import zip_longest

internal_subnets=[ipaddress.IPv4Network(\'192.168.0.0/8\'),ipaddress.IPv4Network(\'10.0.0.0/8\')]

my_sg_subn

相关标签:
回答
  • 消灭零回复
提交回复
热议问题