ip address with subnet is ignored in ip option of "docker network connect" This patch specifies a correct ip format for option.
Signed-off-by: Fumihiko Kakuma <[email protected]> --- ryu/tests/integrated/common/docker_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ryu/tests/integrated/common/docker_base.py b/ryu/tests/integrated/common/docker_base.py index e2f9a98..4c78b61 100644 --- a/ryu/tests/integrated/common/docker_base.py +++ b/ryu/tests/integrated/common/docker_base.py @@ -370,14 +370,15 @@ class Bridge(object): ipv4 = None ipv6 = None ip_address = self.next_ip_address() + ip_address_ip = ip_address.split('/')[0] version = 4 if netaddr.IPNetwork(ip_address).version == 6: version = 6 - opt_ip = "--ip %s" % ip_address + opt_ip = "--ip %s" % ip_address_ip if version == 4: ipv4 = ip_address else: - opt_ip = "--ip6 %s" % ip_address + opt_ip = "--ip6 %s" % ip_address_ip ipv6 = ip_address cmd = "docker network connect %s %s %s" % ( opt_ip, self.name, ctn.docker_name()) -- 1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
