diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-09 15:42:08 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-09 15:56:39 +0900 |
commit | 78dd33b5a58db3d213e9ef9bf244d20bb063947b (patch) | |
tree | 6e10ceb07473ab91096443134badb28d5d3f2c34 /test/lib/exabgp.py | |
parent | f42b8fbae6d8eb381967e82867a1b67188bdcbc5 (diff) |
test: add test to check as2 peer handling
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/exabgp.py')
-rw-r--r-- | test/lib/exabgp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/exabgp.py b/test/lib/exabgp.py index 39298c4c..af6b6e0c 100644 --- a/test/lib/exabgp.py +++ b/test/lib/exabgp.py @@ -69,6 +69,11 @@ class ExaBGPContainer(BGPContainer): cmd << ' local-as {0};'.format(self.asn) cmd << ' peer-as {0};'.format(peer.asn) + if info['as2']: + cmd << ' capability {' + cmd << ' asn4 disable;' + cmd << ' }' + routes = [r for r in self.routes.values() if r['rf'] == 'ipv4' or r['rf'] == 'ipv6'] if len(routes) > 0: |