From 9b71fdf156009f263a54a6ef2f8f1cdfcd34574e Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Tue, 8 Sep 2015 00:00:41 +0800 Subject: [PATCH] re6st-master: Make slaves public where the ip had been used. --- slapos/recipe/re6stnet/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slapos/recipe/re6stnet/__init__.py b/slapos/recipe/re6stnet/__init__.py index a51d18bc4..5a8c5dda4 100644 --- a/slapos/recipe/re6stnet/__init__.py +++ b/slapos/recipe/re6stnet/__init__.py @@ -257,8 +257,11 @@ class Recipe(GenericBaseRecipe): ipv6_file = os.path.join(token_list_path, '%s.ipv6' % slave_reference) ipv6 = self.readFile(ipv6_file) or '::' + ipv4_file = os.path.join(token_list_path, '%s.ipv4' % slave_reference) + node_ipv4 = self.readFile(ipv4_file) or '0.0.0.0' + computer_partition.setConnectionDict( - {'token':token, '1_info':msg, 'ipv6': ipv6}, + {'token':token, '1_info':msg, 'ipv6': ipv6, 'ipv4': node_ipv4}, slave_reference) except Exception: self.logger.fatal("Error while sending slave %s informations: %s", -- 2.30.9