diff options
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r-- | test/lib/gobgp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index dfdc6808..7fa90291 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -426,6 +426,9 @@ class GoBGPContainer(BGPContainer): for typ, d in info.get('default-policy', {}).iteritems(): n['apply-policy']['config']['default-{0}-policy'.format(typ)] = _f(d) + if info['treat_as_withdraw']: + n['error-handling'] = {'config': {'treat-as-withdraw': True}} + config['neighbors'].append(n) config['defined-sets'] = {} |