diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-02-19 15:40:30 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-29 15:59:42 -0800 |
commit | 0b78f57ccdf63591fd211ade0b571189e070f598 (patch) | |
tree | 0c92ff928bcd4aabb9735740f98da486686b051d /test/lib/base.py | |
parent | 53c5bc0258cede44d3544270309b6dd2e83cf058 (diff) |
config/server: support per-peer asn
you can override `global.config.as` by `neighbor.config.local-as`
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/base.py')
-rw-r--r-- | test/lib/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 37cc26f4..3dcbc1e8 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -248,7 +248,7 @@ class BGPContainer(Container): policies=None, passive=False, is_rr_client=False, cluster_id=None, flowspec=False, bridge='', reload_config=True, as2=False, - graceful_restart=None): + graceful_restart=None, local_as=None): neigh_addr = '' local_addr = '' for me, you in itertools.product(self.ip_addrs, peer.ip_addrs): @@ -276,7 +276,8 @@ class BGPContainer(Container): 'passive': passive, 'local_addr': local_addr, 'as2': as2, - 'graceful_restart': graceful_restart} + 'graceful_restart': graceful_restart, + 'local_as': local_as} if self.is_running and reload_config: self.create_config() self.reload_config() |