X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=site_type%2Fsriov%2Ftemplates%2Fprofiles%2Fhost%2Fcp-r01.j2;h=b88d621bf06e3df51ef18943082bfc315ec75ff0;hb=3395a537e26721ec33a80f66686ca932f9328722;hp=e66e85cd7d7e989c89299c41affd4de4f8ce5d42;hpb=88f7b48807627a088499e4d98784405343c98c16;p=yaml_builds.git diff --git a/site_type/sriov/templates/profiles/host/cp-r01.j2 b/site_type/sriov/templates/profiles/host/cp-r01.j2 index e66e85c..b88d621 100644 --- a/site_type/sriov/templates/profiles/host/cp-r01.j2 +++ b/site_type/sriov/templates/profiles/host/cp-r01.j2 @@ -93,15 +93,20 @@ data: image: 'xenial' kernel: 'hwe-16.04' kernel_params: +{% if 'platform' in yaml and 'kernel_params' in yaml.platform %} +{% for key, value in yaml.platform.kernel_params.items() %} + {{key}}: '{{value}}' +{% endfor %} +{% else %} console: 'ttyS1,115200n8' intel_iommu: 'on' iommu: 'pt' amd_iommu: 'on' transparent_hugepage: 'never' - hugepagesz: 'hardwareprofile:hugepages.dpdk.size' - hugepages: 'hardwareprofile:hugepages.dpdk.count' - default_hugepagesz: 'hardwareprofile:hugepages.dpdk.size' - isolcpus: 'hardwareprofile:cpuset.kvm' +{% endif %} +{% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %} + isolcpus: '{{yaml.platform.vcpu_pin_set}}' +{% endif %} metadata: owner_data: control-plane: enabled