Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chassis-packet] minigraph parsing and BGP template changes #8966

Merged
merged 12 commits into from
Oct 19, 2021

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Oct 13, 2021

What I did:

Initial Commit for Chassis in Packet mode and multi-asic.

   •       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
   *       Graph attribute <VOQChassisInternal> change to <ChassisInternal> and taking switch_type as value instead of true/false
   •       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.

How I Verify:

  • Added unit test case for graph and BGP Template changes
  • Manual Verification on the DUT.

abdosi added 10 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 <abdosi@microsoft.com>
@abdosi abdosi requested a review from lguohan as a code owner October 13, 2021 01:10
•	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 <abdosi@microsoft.com>
@abdosi abdosi changed the title [chassis-packet] minigraph parsing BGP template changes [chassis-packet] minigraph parsing and BGP template changes Oct 13, 2021
@abdosi abdosi requested a review from arlakshm October 13, 2021 01:16
@abdosi
Copy link
Contributor Author

abdosi commented Oct 13, 2021

@anamehra Please review from your side also.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as comments

Comment on lines +48 to +49
address-family ipv6
network fc01::1/64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines are present in lines 40 and 41, seems repeated here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working on another PR.. will fix it there.

Comment on lines +1411 to 1414
elif intf[0][0:11] == 'PortChannel':
pc_intfs[intf] = {}
pc_intfs[intf[0]] = {}
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do need this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this to allow the vlan sub interface table to pick up the portchannel subinterfaces? If so, where is the portchannel subinterface parsed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,60 @@
# name lanes alias index speed asic_port_name role source_npu target_npu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the header accurate?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the file formatting as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working on another PR.. will fix it there.

)

def test_minigraph_bgp_packet_chassis_static_route(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a tests for the single asic linecard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working on another PR.. will fix it there.

@abdosi
Copy link
Contributor Author

abdosi commented Oct 18, 2021

@arlakshm i will take care of this comment as part of next pr as these are not blocking. Would like to merge this PR

@abdosi abdosi merged commit 3bb248b into sonic-net:master Oct 19, 2021
@abdosi abdosi deleted the chassis-packet branch October 19, 2021 01:44
abdosi added a commit to abdosi/sonic-buildimage that referenced this pull request Oct 28, 2021
Also address review comments for PR:sonic-net#8966

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi added a commit that referenced this pull request Oct 29, 2021
What I did:

Fix the typo in Internal Peer Group template for Packet-based Chassis.
Address Review comments of PR: [chassis-packet] minigraph parsing and BGP template changes #8966
- Static Route Parsing for Host
- Formatting of chassis port_config.ini
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.

3 participants