summaryrefslogtreecommitdiffhomepage
path: root/test/lib/gobgp.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-19 15:40:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-29 15:59:42 -0800
commit0b78f57ccdf63591fd211ade0b571189e070f598 (patch)
tree0c92ff928bcd4aabb9735740f98da486686b051d /test/lib/gobgp.py
parent53c5bc0258cede44d3544270309b6dd2e83cf058 (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/gobgp.py')
-rw-r--r--test/lib/gobgp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index 1f956587..774113e0 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -215,6 +215,9 @@ class GoBGPContainer(BGPContainer):
if info['is_rs_client']:
n['route-server'] = {'config': {'route-server-client': True}}
+ if info['local_as']:
+ n['config']['local-as'] = info['local_as']
+
if info['graceful_restart'] is not None:
n['graceful-restart'] = {'config': {'enabled': True, 'restart-time': 20}}
for afi_safi in afi_safi_list: