Updated templates for ovs-dpdk site type
[yaml_builds.git] / site_type / ovsdpdk / templates / baremetal / rack.j2
index d265d78..085420f 100644 (file)
@@ -44,20 +44,20 @@ data:
       address: {{server.neutron}}
     - network: calico
       address: {{server.ksn}}
+    - network: dpdk
+      address: {{server.vxlan}}
   metadata:
     rack: RACK01
     tags:
       - 'masters'
-{% if 'platform' in yaml %}
   platform:
     kernel_params:
-{% for key, value in yaml.platform.kernel_params.items() %}
-      {{key}}: '{{value}}'
-{% endfor %}
-{% if 'vcpu_pin_set' in yaml.platform %}
-      isolcpus: '{{yaml.platform.vcpu_pin_set}}'
-{% endif %}
-{% endif %}
+      hugepagesz: '1G'
+      hugepages: 32
+      default_hugepagesz: '1G'
+      iommu: 'pt'
+      intel_iommu: 'on'
+...
 {% endfor %}
 {% if 'workers' in yaml %}{% for server in yaml.workers %}
 ---
@@ -90,19 +90,18 @@ data:
       address: {{server.neutron}}
     - network: calico
       address: {{server.ksn}}
+    - network: dpdk
+      address: {{server.vxlan}}
   metadata:
     rack: RACK01
     tags:
       - 'workers'
-{% if 'platform' in yaml %}
   platform:
     kernel_params:
-{% for key, value in yaml.platform.kernel_params.items() %}
-      {{key}}: '{{value}}'
-{% endfor %}
-{% if 'vcpu_pin_set' in yaml.platform %}
-      isolcpus: '{{yaml.platform.vcpu_pin_set}}'
-{% endif %}
-{% endif %}
-{% endfor %}{% endif %}
+      hugepagesz: '1G'
+      hugepages: 32
+      default_hugepagesz: '1G'
+      iommu: 'pt'
+      intel_iommu: 'on'
 ...
+{% endfor %}{% endif %}