Commit 62810f07 authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Allow link local IPv6 gateways



Each host using IPv6 always has a link local address in fe80::/10. It is
common to use fe80::1 as default gateway to ease client configuration.
Ganeti prevented this usage, because it made sure that the IPv6 gateway
is in the IPv6 network the instance is connected to.

This patch also allows to specify a IPv6 gateway in the link local
network in addition to the network the instance is connected to.

This fixes issue 624.
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 4289f617
......@@ -160,7 +160,7 @@ class AddressPool(object):
assert self.gateway in self.network
if self.network6 and self.gateway6:
assert self.gateway6 in self.network6
assert self.gateway6 in self.network6 or self.gateway6.is_link_local
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment