From d5aa0d32a4161ce8c50bacdd846034575f287340 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 26 Jul 2015 17:52:02 +0900 Subject: test: don't give ip address to a bridge by default now telnet to quagga occurs in quagga container's local network namespace. we don't need to address a bridge Signed-off-by: ISHIDA Wataru --- test/scenario_test/lib/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py index 721e1c1d..26a17834 100644 --- a/test/scenario_test/lib/base.py +++ b/test/scenario_test/lib/base.py @@ -82,7 +82,7 @@ def make_gobgp_ctn(tag='gobgp', local_gobgp_path=''): class Bridge(object): - def __init__(self, name, subnet='', with_ip=True): + def __init__(self, name, subnet='', with_ip=True, self_ip=False): self.name = name self.with_ip = with_ip if with_ip: @@ -101,7 +101,8 @@ class Bridge(object): local("ip link add {0} type bridge".format(self.name), capture=True) local("ip link set up dev {0}".format(self.name), capture=True) - if with_ip: + self.self_ip = self_ip + if self_ip: self.ip_addr = self.next_ip_address() local("ip addr add {0} dev {1}".format(self.ip_addr, self.name), capture=True) -- cgit v1.2.3