Skip to content

Commit

Permalink
We now have an IPv6 /48!
Browse files Browse the repository at this point in the history
  • Loading branch information
jvperrin committed Jun 28, 2018
1 parent fb336af commit 8776681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ocflib/infra/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
OCF_GATEWAY_V4 = ip_address('169.229.226.1')
OCF_GATEWAY_V6 = ip_address('2607:f140:8801::1')
OCF_SUBNET_V4 = ip_network('169.229.226.0/24')
OCF_SUBNET_V6 = ip_network('2607:f140:8801::/64')
OCF_SUBNET_V6 = ip_network('2607:f140:8801::/48')
OCF_SUBNET_V6_COMPAT = ip_network('2607:f140:8801::1:0/112')


Expand Down
2 changes: 2 additions & 0 deletions tests/infra/net_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def test_6to4_failure(ipv6):
(ip_address('169.229.226.212'), True),
(ip_address('2607:f140:8801::10'), True),
(ip_address('2607:f140:8801::1:10'), True),
(ip_address('2607:f140:8801:100::1'), True),
(ip_address('8.8.8.8'), False),
(ip_address('2607:f140:8802::1'), False),
(ip_address('cafe:f140:8801::1:10'), False),
])
def test_is_ocf_ip(ip, expected):
Expand Down

0 comments on commit 8776681

Please sign in to comment.