summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-09 15:56:50 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-16 16:14:20 +0900
commitecc9b5631eb68a5148affce56765fe661bf1f2f8 (patch)
treeecac4b8d561dde01b09eaef81fc0cc8b0f3dff51 /test/lib
parentafc1fcb1e37d34813dcaede88773956642bdd6c8 (diff)
test/lib: Enable to disply name of config file
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/bird.py4
-rw-r--r--test/lib/exabgp.py4
-rw-r--r--test/lib/gobgp.py6
-rw-r--r--test/lib/quagga.py6
4 files changed, 10 insertions, 10 deletions
diff --git a/test/lib/bird.py b/test/lib/bird.py
index c728d986..8077760f 100644
--- a/test/lib/bird.py
+++ b/test/lib/bird.py
@@ -65,7 +65,7 @@ class BirdContainer(BGPContainer):
c << '}'
with open('{0}/bird.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new bird.conf]'.format(self.name))
print colors.yellow(indent(str(c)))
f.writelines(str(c))
@@ -111,6 +111,6 @@ class RawBirdContainer(BirdContainer):
def create_config(self):
with open('{0}/bird.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new bird.conf]'.format(self.name))
print colors.yellow(indent(self.config))
f.writelines(self.config)
diff --git a/test/lib/exabgp.py b/test/lib/exabgp.py
index 511a7890..dbf8f023 100644
--- a/test/lib/exabgp.py
+++ b/test/lib/exabgp.py
@@ -151,7 +151,7 @@ class ExaBGPContainer(BGPContainer):
cmd << '}'
with open('{0}/exabgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new exabgpd.conf]'.format(self.name))
print colors.yellow(str(cmd))
f.write(str(cmd))
@@ -199,6 +199,6 @@ class RawExaBGPContainer(ExaBGPContainer):
def create_config(self):
with open('{0}/exabgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new exabgpd.conf]'.format(self.name))
print colors.yellow(self.config)
f.write(self.config)
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index 468bd0ae..1a54237a 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -407,7 +407,7 @@ class GoBGPContainer(BGPContainer):
'version': self.zapi_version}}
with open('{0}/gobgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new gobgpd.conf]'.format(self.name))
if self.config_format is 'toml':
raw = toml.dumps(config)
elif self.config_format is 'yaml':
@@ -430,7 +430,7 @@ class GoBGPContainer(BGPContainer):
c << ''
with open('{0}/zebra.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new zebra.conf]'.format(self.name))
print colors.yellow(indent(str(c)))
f.writelines(str(c))
@@ -481,6 +481,6 @@ class RawGoBGPContainer(GoBGPContainer):
def create_config(self):
with open('{0}/gobgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new gobgpd.conf]'.format(self.name))
print colors.yellow(indent(self.config))
f.write(self.config)
diff --git a/test/lib/quagga.py b/test/lib/quagga.py
index ce3f9e84..f0034459 100644
--- a/test/lib/quagga.py
+++ b/test/lib/quagga.py
@@ -222,7 +222,7 @@ class QuaggaBGPContainer(BGPContainer):
c << 'log file {0}/bgpd.log'.format(self.SHARED_VOLUME)
with open('{0}/bgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new bgpd.conf]'.format(self.name))
print colors.yellow(indent(str(c)))
f.writelines(str(c))
@@ -237,7 +237,7 @@ class QuaggaBGPContainer(BGPContainer):
c << ''
with open('{0}/zebra.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new zebra.conf]'.format(self.name))
print colors.yellow(indent(str(c)))
f.writelines(str(c))
@@ -279,6 +279,6 @@ class RawQuaggaBGPContainer(QuaggaBGPContainer):
def create_config(self):
with open('{0}/bgpd.conf'.format(self.config_dir), 'w') as f:
- print colors.yellow('[{0}\'s new config]'.format(self.name))
+ print colors.yellow('[{0}\'s new bgpd.conf]'.format(self.name))
print colors.yellow(indent(self.config))
f.writelines(self.config)