Comment 15 for bug 1755768

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/40630
Committed: http://github.com/Juniper/contrail-controller/commit/31a8af589dc29b9f5590a43018e698f20017cb2f
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 31a8af589dc29b9f5590a43018e698f20017cb2f
Author: Ananth Suryanarayana <email address hidden>
Date: Wed Mar 14 03:39:23 2018 -0700

Provide local-as configure-ability for each bgp session

Some bgpaas deployments need different peer AS number for each bgpaas session
(on the control-node) side. Hence, provide a local-as support on a per bgp peer
basis

o local_as_ is already of BgpPeer. It was always populated with either the
global asn or (per control-node) local asn. With this change, if local-as
is configured on a per peering session, then that local-as takes precendence.
o Add unit tests to test this per per specific local as
o Parameterize bgp_bgpaas_test to test with per peer local-as configured or
otherwise
o Tweak RibOut policy to create sepearte ribouts if local-as field differs
o During as-path prepend, either global local-as or per peer local-as is
prepended for ebgp sessions.
o AS Override shall now override with per peer local-as if configured,
global local-as otherwise

Change-Id: I2d1e30820195c2eacf392317c235ac40ad7ce027
Depends-On: I71a5250f50cf3cdf1090644f9da9883183632111
Partial-Bug: 1755768