Skip to content

Updated Internal BGP Templates for chassis packet#9674

Merged
abdosi merged 26 commits intosonic-net:masterfrom
abdosi:chassis-packet
Feb 8, 2022
Merged

Updated Internal BGP Templates for chassis packet#9674
abdosi merged 26 commits intosonic-net:masterfrom
abdosi:chassis-packet

Conversation

@abdosi
Copy link
Contributor

@abdosi abdosi commented Jan 5, 2022

What/Why I did:

   Some time jinja2 template renderation of Loopbcack4096 was not happening
    correctly because of timing issue where DB might not be poupulated.
    So Instead of using IP Address using Interface name.

    Fixes: https://github.com/Azure/sonic-buildimage/issues/9610

How I verify:

Unit Test.

abdosi added 26 commits April 3, 2021 01:41
df46ed418e661a9bccdb2639d8873def356f8ba0 (HEAD -> master, origin/master, origin/HEAD) Fix the LLDP_LOC_CHASSIS not getting populated if no remote neighbors are present (sonic-net#39)
e487532e11cc0e97cfce573b6b997fdd0beeb660 [CI] Set up CI&PR with Azure Pipelines (sonic-net#38)
3c9f488490a1dbded20dbf2d8a88a5ab4dbda8df Replace swsssdk's SonicV2Connector with swsscommon's implementation (sonic-net#35)

Signed-off-by: Abhishek Dosi <[email protected]>
•	Internal BGP Peering between LCx-ASICy is done using Loopback4096
•	Internal BGP Peer will be classified as BGP_INTERNAL_NEIGHBOR with source updated as Loopback4096
•	DEVICE_METADATA will have “switch_type” define as “chassis-packet”.  We already have “voq” define. This will be used in BGP template.
•	Static Routes are define using SONiC schema.
*       Fixed Vlan Sub Interface Parsing in Graph when configured on Port-Channel.
*       Added Unit test cases of graph and BGP template changes.

Signed-off-by: Abhishek Dosi <[email protected]>
Signed-off-by: Abhishek Dosi <[email protected]>
Also address review comments for PR:sonic-net#8966

Signed-off-by: Abhishek Dosi <[email protected]>
1. For Packet Chassis do not advertise Loopback4096 address into BGP
   as there is Static Route for same.
2. Advertise only P2P Connected IP's into BGP

Signed-off-by: Abhishek Dosi <[email protected]>
By default FRR will be in Graceful Helper mode

Signed-off-by: Abhishek Dosi <[email protected]>
correctly because of timing issue where DB might not be poupulated.
So Instead of using IP Address using Interface name.

Fixes: sonic-net#9610

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi abdosi requested a review from lguohan as a code owner January 5, 2022 01:05
@abdosi abdosi added Chassis 🤖 Modular chassis support Chassis for 202111 branch Request for 202111 Branch For PRs being requested for 202111 branch labels Jan 5, 2022
@abdosi
Copy link
Contributor Author

abdosi commented Jan 5, 2022

@anamehra Can you please check if this fixes the issue.

@anamehra
Copy link
Contributor

@anamehra Can you please check if this fixes the issue.

@abdosi , I validated this change before the holidays and it worked fine. You may go ahead with the merge.

@abdosi abdosi requested a review from arlakshm January 11, 2022 00:47
@abdosi
Copy link
Contributor Author

abdosi commented Jan 11, 2022

@arlakshm can you please help review/approve this.

@arlakshm
Copy link
Contributor

@abdosi, as discussed offline can you verify the race condition where the Loopback4096 ip address is configuration after the bgp configuration is applied in FRR

@abdosi
Copy link
Contributor Author

abdosi commented Jan 28, 2022

@abdosi, as discussed offline can you verify the race condition where the Loopback4096 ip address is configuration after the bgp configuration is applied in FRR

@arlakshm I have done some more regression testing with this change and it looks fine. Can you please approve this.

@abdosi abdosi merged commit e44a40c into sonic-net:master Feb 8, 2022
@abdosi abdosi deleted the chassis-packet branch February 8, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants