Commit 2a0975a2 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

BUGFIX: use ipv6_interface if available

fix after nexedi/slapos.core!62

@rafael currently slapos node boot is broken on all machines with ipv6_interface different from interface_name (e.g. rapid space machines)

/reviewed-on nexedi/slapos.core!68
parent aa8c5d84
......@@ -155,11 +155,14 @@ class BootCommand(ConfigCommand):
def take_action(self, args):
configp = self.fetch_config(args)
instance_root = configp.get('slapos','instance_root')
interface_name = configp.get('slapformat','interface_name')
master_url = urlparse.urlparse(configp.get('slapos','master_url'))
master_hostname = master_url.hostname
# Check that we have IPv6 ready on interface_name
# Check that we have IPv6 ready
if configp.get('slapformat','ipv6_interface'):
interface_name = configp.get('slapformat','ipv6_interface')
else:
interface_name = configp.get('slapformat','interface_name')
_waitIpv6Ready(interface_name)
# Check that node can ping master
......
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