diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 139cecc4..8d27e996 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -100,7 +100,9 @@ def make_gobgp_ctn(tag='gobgp', local_gobgp_path='', from_image='osrg/quagga'): class Bridge(object): def __init__(self, name, subnet='', with_ip=True, self_ip=False): - self.name = '{0}_{1}'.format(TEST_PREFIX, name) + self.name = name + if TEST_PREFIX != '': + self.name = '{0}_{1}'.format(TEST_PREFIX, name) self.with_ip = with_ip if with_ip: self.subnet = netaddr.IPNetwork(subnet) |