Skip to content

Commit f170be9

Browse files
authored
Change "Compute-AI" to "ComputeAI" (#11727)
Approach What is the motivation for this PR? Manually cherry-pick Change "Compute-AI" to "ComputeAI" #11720 How did you do it? Manually cherry-pick Change "Compute-AI" to "ComputeAI" #11720 co-authorized by: jianquanye@microsoft.com
1 parent c3593ab commit f170be9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ansible/config_sonic_basedon_testbed.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,16 @@
201201
- name: enable tunnel_qos_remap for T1 in dualtor deployment
202202
set_fact:
203203
enable_tunnel_qos_remap: true
204-
when: "('leafrouter' == (vm_topo_config['dut_type'] | lower)) and (hwsku in hwsku_list_dualtor_t1) and not (is_ixia_testbed)"
204+
when: "(('leafrouter' == (vm_topo_config['dut_type'] | lower)) or ('backendleafrouter' == (vm_topo_config['dut_type'] | lower))) and (hwsku in hwsku_list_dualtor_t1) and not (is_ixia_testbed)"
205+
206+
- name: gather hwsku that supports ComputeAI deployment
207+
set_fact:
208+
hwsku_list_compute_ai: "['Cisco-8111-O64']"
209+
210+
- name: enable ComputeAI deployment
211+
set_fact:
212+
enable_compute_ai_deployment: true
213+
when: "(hwsku in hwsku_list_compute_ai) and not (is_ixia_testbed)"
205214

206215
- name: set default vm file path
207216
set_fact:

ansible/templates/minigraph_meta.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
<a:Value>Gemini</a:Value>
6060
</a:DeviceProperty>
6161
{% endif %}
62+
{% if enable_compute_ai_deployment|default('false')|bool %}
63+
<a:DeviceProperty>
64+
<a:Name>ResourceType</a:Name>
65+
<a:Reference i:nil="true"/>
66+
<a:Value>ComputeAI</a:Value>
67+
</a:DeviceProperty>
68+
{% endif %}
6269
{% if dhcp_servers %}
6370
<a:DeviceProperty>
6471
<a:Name>DhcpResources</a:Name>

0 commit comments

Comments
 (0)