Skip to content

Commit 5457f50

Browse files
nnelluri-ciscovidyac86
authored andcommitted
Added DPC role support for SmartSwitch. (sonic-net#18157)
* added support for subtype for smartswicth * checking subtype only if its defined in lab file
1 parent 42b7c23 commit 5457f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ansible/templates/minigraph_device.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<MultiPortsInterface>false</MultiPortsInterface>
1515
<PortName>0</PortName>
1616
<Priority>0</Priority>
17+
{% if subtype is defined and subtype == 'SmartSwitch' and index > 27 %}
18+
<role>Dpc</role>
19+
{% endif %}
1720
{% if port_speed[port_alias[index]] is defined %}
1821
<Speed>{{ port_speed[port_alias[index]] }}</Speed>
1922
{% elif (breakout_speed is defined) and (hwsku in breakout_speed) and (port_alias[index] in breakout_speed[hwsku].keys()) %}

0 commit comments

Comments
 (0)