Skip to content

Commit 8776681

Browse files
committed
We now have an IPv6 /48!
1 parent fb336af commit 8776681

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ocflib/infra/net.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
OCF_GATEWAY_V4 = ip_address('169.229.226.1')
99
OCF_GATEWAY_V6 = ip_address('2607:f140:8801::1')
1010
OCF_SUBNET_V4 = ip_network('169.229.226.0/24')
11-
OCF_SUBNET_V6 = ip_network('2607:f140:8801::/64')
11+
OCF_SUBNET_V6 = ip_network('2607:f140:8801::/48')
1212
OCF_SUBNET_V6_COMPAT = ip_network('2607:f140:8801::1:0/112')
1313

1414

tests/infra/net_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ def test_6to4_failure(ipv6):
6969
(ip_address('169.229.226.212'), True),
7070
(ip_address('2607:f140:8801::10'), True),
7171
(ip_address('2607:f140:8801::1:10'), True),
72+
(ip_address('2607:f140:8801:100::1'), True),
7273
7374
(ip_address('8.8.8.8'), False),
75+
(ip_address('2607:f140:8802::1'), False),
7476
(ip_address('cafe:f140:8801::1:10'), False),
7577
])
7678
def test_is_ocf_ip(ip, expected):

0 commit comments

Comments
 (0)