diff options
Diffstat (limited to 'test/lib/base.py')
-rw-r--r-- | test/lib/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 9dc44e82..b0f66ec4 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -327,7 +327,7 @@ class BGPContainer(Container): graceful_restart=None, local_as=None, prefix_limit=None, v6=False, llgr=None, vrf='', interface='', allow_as_in=0, remove_private_as=None, replace_peer_as=False, addpath=False, - treat_as_withdraw=False): + treat_as_withdraw=False, remote_as=None): neigh_addr = '' local_addr = '' it = itertools.product(self.ip_addrs, peer.ip_addrs) @@ -373,7 +373,8 @@ class BGPContainer(Container): 'remove_private_as': remove_private_as, 'replace_peer_as': replace_peer_as, 'addpath': addpath, - 'treat_as_withdraw': treat_as_withdraw} + 'treat_as_withdraw': treat_as_withdraw, + 'remote_as': remote_as or peer.asn} if self.is_running and reload_config: self.create_config() self.reload_config() |