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
Reviewed: https:/ /review. opencontrail. org/40630 github. com/Juniper/ contrail- controller/ commit/ 31a8af589dc29b9 f5590a43018e698 f20017cb2f
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit 31a8af589dc29b9 f5590a43018e698 f20017cb2f
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: I2d1e30820195c2 eacf392317c235a c40ad7ce027 df1090644f9da98 83183632111
Depends-On: I71a5250f50cf3c
Partial-Bug: 1755768