diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-05-05 11:19:40 -0400 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-05-10 08:05:47 +0000 |
commit | 1f053c25c423c79471fbe1d5fb6c618bb67409df (patch) | |
tree | ba3c43da6df3e1163a754ff742f25a64d819d6e2 /test/lib/base.py | |
parent | 540d77319c6eaa1eefd7b52df2a4771c7ee565ac (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/base.py')
-rw-r--r-- | test/lib/base.py | 6 |
1 files changed, 4 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() |