diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-06 23:33:02 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-10 23:58:17 +0000 |
commit | 59420a4c4623492085348e07fb78eaae51182782 (patch) | |
tree | ea4ab75a0b39ca4ff049924edec59d7247ca0759 /test/lib/gobgp.py | |
parent | aa79a4de21772f556450cfe7e55e6f400c3f9dec (diff) |
server: support prefix-limit
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r-- | test/lib/gobgp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index b8413f40..36b4b86e 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -243,6 +243,10 @@ class GoBGPContainer(BGPContainer): if info['local_as']: n['config']['local-as'] = info['local_as'] + if info['prefix_limit']: + for v in afi_safi_list: + v['prefix-limit'] = {'config': {'max-prefixes': info['prefix_limit'], 'shutdown-threshold-pct': 80 }} + if info['graceful_restart'] is not None: n['graceful-restart'] = {'config': {'enabled': True, 'restart-time': 20}} for afi_safi in afi_safi_list: |