summaryrefslogtreecommitdiffhomepage
path: root/test/lib/exabgp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/exabgp.py')
-rw-r--r--test/lib/exabgp.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/test/lib/exabgp.py b/test/lib/exabgp.py
index e3934c79..511a7890 100644
--- a/test/lib/exabgp.py
+++ b/test/lib/exabgp.py
@@ -13,8 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from base import *
-from itertools import chain
+from __future__ import absolute_import
+
+import time
+
+from fabric import colors
+from fabric.api import local
+
+from lib.base import (
+ BGPContainer,
+ CmdBuffer,
+ try_several_times,
+)
+
class ExaBGPContainer(BGPContainer):
@@ -46,7 +57,7 @@ class ExaBGPContainer(BGPContainer):
c << 'cp {0}/etc/exabgp/exabgp.env {1}'.format(remotepath, self.SHARED_VOLUME)
c << 'sed -i -e \'s/all = false/all = true/g\' {0}/exabgp.env'.format(self.SHARED_VOLUME)
c << 'cp -r {0}/exabgp {1}'.format(self.SHARED_VOLUME,
- remotepath[:-1*len('exabgp')])
+ remotepath[:-1 * len('exabgp')])
c << 'cp {0}/exabgp.env {1}/etc/exabgp/'.format(self.SHARED_VOLUME, remotepath)
cmd = 'echo "{0:s}" > {1}/update.sh'.format(c, self.config_dir)
local(cmd, capture=True)