Skip to content

Commit 73013a2

Browse files
authored
Allow /56 subnet for ipv6 pool (#761)
Needed for some crn
1 parent 7444c81 commit 73013a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/vm/network/hostnetwork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class StaticIPv6Allocator(IPv6Allocator):
5353
}
5454

5555
def __init__(self, ipv6_range: IPv6Network, subnet_prefix: int):
56-
if ipv6_range.prefixlen != 64:
57-
msg = "The static IP address allocation scheme requires a /64 subnet"
56+
if ipv6_range.prefixlen not in (56, 64):
57+
msg = "The static IP address allocation scheme requires a /64 or /56 subnet"
5858
raise ValueError(msg)
5959
if subnet_prefix < 124:
6060
msg = "The IPv6 subnet prefix cannot be larger than /124."

0 commit comments

Comments
 (0)