summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2017-05-05 11:19:40 -0400
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2017-05-10 08:05:47 +0000
commit1f053c25c423c79471fbe1d5fb6c618bb67409df (patch)
treeba3c43da6df3e1163a754ff742f25a64d819d6e2 /test/lib
parent540d77319c6eaa1eefd7b52df2a4771c7ee565ac (diff)
*: support remove private as
cli ``` $ gobgp n add <neighbor-addr> as <asn> remove-private-as (all|replace) ``` config ``` neighbor: config: peer-as: <asn> neighbor-address: <neighbor-addr> remove-private-as: all ``` Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/base.py6
-rw-r--r--test/lib/gobgp.py1
2 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index ef8e7ab7..86a339c7 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -310,7 +310,8 @@ class BGPContainer(Container):
is_rr_client=False, cluster_id=None,
flowspec=False, bridge='', reload_config=True, as2=False,
graceful_restart=None, local_as=None, prefix_limit=None,
- v6=False, llgr=None, vrf='', interface='', allow_as_in=0):
+ v6=False, llgr=None, vrf='', interface='', allow_as_in=0,
+ remove_private_as=None):
neigh_addr = ''
local_addr = ''
it = itertools.product(self.ip_addrs, peer.ip_addrs)
@@ -352,7 +353,8 @@ class BGPContainer(Container):
'prefix_limit': prefix_limit,
'llgr': llgr,
'vrf': vrf,
- 'allow_as_in': allow_as_in}
+ 'allow_as_in': allow_as_in,
+ 'remove_private_as': remove_private_as}
if self.is_running and reload_config:
self.create_config()
self.reload_config()
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index 15264bfb..92e19f07 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -345,6 +345,7 @@ class GoBGPContainer(BGPContainer):
'peer-as': peer.asn,
'auth-password': info['passwd'],
'vrf': info['vrf'],
+ 'remove-private-as': info['remove_private_as'],
},
'afi-safis': afi_safi_list,
'timers': {