Skip to content

Commit db338cc

Browse files
nnelluri-ciscogshemesh2
authored andcommitted
Add Dpc role assignment for SmartSwitch interfaces (sonic-net#20244)
* Add Dpc role assignment for SmartSwitch interfaces * replaced port_alias with port_name for intf Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
1 parent 85981a6 commit db338cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ansible/templates/minigraph_device.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<MultiPortsInterface>false</MultiPortsInterface>
1515
<PortName>0</PortName>
1616
<Priority>0</Priority>
17-
{% if subtype is defined and subtype == 'SmartSwitch' and index > 27 %}
17+
{% set intf = port_name[index] %}
18+
{% if subtype is defined and subtype == 'SmartSwitch' and intf[8:]|int >= 224 %}
1819
<role>Dpc</role>
1920
{% endif %}
2021
{% if port_speed[port_alias[index]] is defined %}

0 commit comments

Comments
 (0)