diff options
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r-- | test/lib/gobgp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 92e19f07..26847c77 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -361,6 +361,8 @@ class GoBGPContainer(BGPContainer): n['as-path-options'] = {'config': {}} if info['allow_as_in'] > 0: n['as-path-options']['config']['allow-own-as'] = info['allow_as_in'] + if info['replace_peer_as']: + n['as-path-options']['config']['replace-peer-as'] = info['replace_peer_as'] if ':' in info['local_addr']: n['transport']['config']['local-address'] = info['local_addr'].split('/')[0] |