diff options
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: |