Remove unecessary examples that were moved to the docstring

This commit is contained in:
otthorn 2021-04-18 00:23:55 +02:00
parent 328af785a8
commit 2983c3d4db

View file

@ -72,25 +72,3 @@ def reverse_zone(network):
reversed_zone = ".".join(splitted)
return dns.name.from_text(reversed_zone)
net1 = ipaddress.IPv4Network("10.128.12.0/24")
net2 = ipaddress.IPv4Network("10.129.0.0/16")
net3 = ipaddress.IPv4Network("10.0.0.0/8")
net4 = ipaddress.IPv6Network("2001:470:142:3::/64")
net5 = ipaddress.IPv6Network("2001:470:142::/48")
net6 = ipaddress.IPv6Network("2a09:6840::/32")
#>>> reverse_zone(net1)
#'12.128.10.in-addr.arpa'
#>>> reverse_zone(net2)
#'129.10.in-addr.arpa'
#>>> reverse_zone(net3)
#'10.in-addr.arpa'
#>>> reverse_zone(net4)
#'3.0.0.0.2.4.1.0.0.7.4.0.1.0.0.2.ip6.arpa'
#>>> reverse_zone(net5)
#'2.4.1.0.0.7.4.0.1.0.0.2.ip6.arpa'
#>>> reverse_zone(net6)
#'0.4.8.6.9.0.a.2.ip6.arpa'