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

[smartswitch] Add HLD for IP address assignment in Smart Switch. #1504

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

oleksandrivantsiv
Copy link
Contributor

@oleksandrivantsiv oleksandrivantsiv commented Oct 26, 2023

@r12f
Copy link
Contributor

r12f commented Nov 1, 2023

hi Oleksandr, do you mind to move the files from dash folder to "smart-switch" folder? the dash folder is mostly only focus on the dash object model that used by our northbound interface. and everything else related to smart switch will be better to put under smart-switch folder, e.g., HA design.

"DEVICE_METADATA": {
"localhost": {
"switch_type": "switch",
"type": "SmartSwitch",
Copy link
Contributor

@prsunny prsunny Nov 2, 2023

Choose a reason for hiding this comment

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

This must be subtype. type is used as "LeafRouter" etc. Please update Yang 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.

done

"GLOBAL": {
"bridge" : "bridge_midplane",
"address": "169.254.200.254/24",
"members": ["Dpu0", "Dpu1"]
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 really required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we can get the information from the DPUS table. Removed

2. Extend existing YANG model tests to cover MGMT_INTERFACE table changes.
3. Add new tests to cover the handling of MID_PLANE_BRIDGE and DPUS tables in sonic-cfggen utility.
4. Add new tests to cover DHCP server configuration generation for the Smart Switch in sonic-cfggen utility.
5. Extend interface-config.service tests to verify midplane bridge configuration generation.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should have a test to ensure these midplane IPs are not advertised via BGP

@oleksandrivantsiv
Copy link
Contributor Author

hi Oleksandr, do you mind to move the files from dash folder to "smart-switch" folder? the dash folder is mostly only focus on the dash object model that used by our northbound interface. and everything else related to smart switch will be better to put under smart-switch folder, e.g., HA design.

Done

@oleksandrivantsiv
Copy link
Contributor Author

@prsunny can we merge this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants