diff --git a/ansible/templates/minigraph_device.j2 b/ansible/templates/minigraph_device.j2
index 73547abdb89..bfc588caad4 100644
--- a/ansible/templates/minigraph_device.j2
+++ b/ansible/templates/minigraph_device.j2
@@ -14,7 +14,8 @@
false
0
0
-{% if subtype is defined and subtype == 'SmartSwitch' and index > 27 %}
+{% set intf = port_name[index] %}
+{% if subtype is defined and subtype == 'SmartSwitch' and intf[8:]|int >= 224 %}
Dpc
{% endif %}
{% if port_speed[port_alias[index]] is defined %}