summaryrefslogtreecommitdiffhomepage
path: root/test/lib/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/base.py')
-rw-r--r--test/lib/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index 8d27e996..5ab94d8b 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -247,7 +247,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=None,
- flowspec=False, bridge='', reload_config=True):
+ flowspec=False, bridge='', reload_config=True, as2=False):
neigh_addr = ''
local_addr = ''
for me, you in itertools.product(self.ip_addrs, peer.ip_addrs):
@@ -273,7 +273,8 @@ class BGPContainer(Container):
'cluster_id': cluster_id,
'policies': policies,
'passive': passive,
- 'local_addr': local_addr}
+ 'local_addr': local_addr,
+ 'as2': as2}
if self.is_running and reload_config:
self.create_config()
self.reload_config()