Add Dpc role assignment for SmartSwitch interfaces#20244
Merged
prabhataravind merged 2 commits intosonic-net:masterfrom Sep 19, 2025
Merged
Add Dpc role assignment for SmartSwitch interfaces#20244prabhataravind merged 2 commits intosonic-net:masterfrom
prabhataravind merged 2 commits intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
@prabhataravind @congh-nvidia @rameshraghupathy This PR is raised extension to below mentioned PR |
Contributor
|
@congh-nvidia please review this change. |
Contributor
|
@congh-nvidia could you please approve if this looks okay to you for Nvidia smartswitch platform? |
| <PortName>0</PortName> | ||
| <Priority>0</Priority> | ||
| {% if subtype is defined and subtype == 'SmartSwitch' and index > 27 %} | ||
| {% set intf = port_alias[index] %} |
Contributor
There was a problem hiding this comment.
Shouldn't this be based on sonic port name and not port alias?
a80df7c to
7a737de
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
7a737de to
29696ac
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
@congh-nvidia could you approve as well if there are no concerns? |
11 tasks
Collaborator
|
@nnelluri-cisco PR conflicts with 202505 branch |
vidyac86
pushed a commit
to vidyac86/sonic-mgmt
that referenced
this pull request
Oct 23, 2025
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf
opcoder0
pushed a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: opcoder0 <[email protected]>
9 tasks
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Jan 13, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf
yifan-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Jan 14, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: YiFan Wang <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Guy Shemesh <[email protected]>
lakshmi-nexthop
pushed a commit
to lakshmi-nexthop/sonic-mgmt
that referenced
this pull request
Jan 28, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Lakshmi Yarramaneni <[email protected]>
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Yael Tzur <[email protected]>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Feb 6, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Mar 27, 2026
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:This commit introduces logic to assign the 'Dpc' role based on specific conditions within the port alias and subtype.
Fixes # (issue)
Type of change
Back port request
Approach
The 'Dpc' role is now assigned when:
The subtype is defined and equals 'SmartSwitch'.
The integer value extracted from the intf variable (starting from the 8th character) is greater than or equal to 224.
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Deployed the minigraph and confirmed that the DPU role configuration is present for all backplane interfaces.
Any platform specific information?
HwSKU: Cisco-8102-28FH-DPU-O
Supported testbed topology if it's a new test case?
t1-128-lag
Documentation