summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/base.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-30 21:36:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-31 22:48:50 +0900
commit375e1d65b2c90c3d287b83633ec13efde9aa62a2 (patch)
tree80980c59f300924005b674d5e0beacae85c7acab /test/scenario_test/lib/base.py
parent955409c37ce17daf346e30aa1d1e2d40767ebb43 (diff)
server: support route reflector behavior
scenario_test is also added Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/lib/base.py')
-rw-r--r--test/scenario_test/lib/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py
index 1bba6f5b..7f73516b 100644
--- a/test/scenario_test/lib/base.py
+++ b/test/scenario_test/lib/base.py
@@ -224,6 +224,9 @@ class BGPContainer(Container):
self.policies = {}
super(BGPContainer, self).__init__(name, ctn_image_name)
+ def __repr__(self):
+ return str({'name':self.name, 'asn':self.asn, 'router_id':self.router_id})
+
def run(self):
self.create_config()
super(BGPContainer, self).run()
@@ -231,7 +234,7 @@ class BGPContainer(Container):
def add_peer(self, peer, passwd=None, evpn=False, is_rs_client=False,
policies=None, passive=False,
- is_rr_client=False, cluster_id='',
+ is_rr_client=False, cluster_id=None,
flowspec=False):
neigh_addr = ''
local_addr = ''