diff options
-rw-r--r-- | config/installers/fuel/net_macros.j2 | 12 | ||||
-rw-r--r-- | labs/arm/idf-pod10.yaml | 6 | ||||
-rw-r--r-- | labs/arm/idf-pod6.yaml | 6 | ||||
-rw-r--r-- | labs/arm/idf-pod7.yaml | 6 | ||||
-rw-r--r-- | labs/arm/idf-pod8.yaml | 6 | ||||
-rw-r--r-- | labs/arm/idf-pod9.yaml | 6 | ||||
-rw-r--r-- | labs/arm/idf-virtual2.yaml | 2 | ||||
-rw-r--r-- | labs/arm/virtual2.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual-pod1bl01.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual1.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual2.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual3.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual4.yaml | 8 | ||||
-rw-r--r-- | labs/ericsson/virtual5.yaml | 8 |
14 files changed, 56 insertions, 44 deletions
diff --git a/config/installers/fuel/net_macros.j2 b/config/installers/fuel/net_macros.j2 index 7ff3166c..ad26a79c 100644 --- a/config/installers/fuel/net_macros.j2 +++ b/config/installers/fuel/net_macros.j2 @@ -35,3 +35,15 @@ {%- macro interface_str(nic, vlan = 0) -%} {{ nic }}{% if vlan | int > 0 %}.{{ vlan }}{% endif %} {%- endmacro -%} + +{%- macro vpp_interface_str(speed, pci_addr, driver = '') -%} + {%- set p = pci_addr.replace('.', ':').split(':') -%} + {%- set s = 'Ethernet%d/%d/%d' | format(p[-3] | int(0, 16), + p[-2] | int(0, 16), + p[-1] | int(0, 16)) -%} + {%- if 'vfio' in driver -%} + VirtualFunction{{ s }} + {%- else -%} + {% if '40g' in speed %}Forty{% elif '10g' in speed %}Ten{% endif %}Gigabit{{ s }} + {%- endif -%} +{%- endmacro -%} diff --git a/labs/arm/idf-pod10.yaml b/labs/arm/idf-pod10.yaml index 836f2da7..a0735158 100644 --- a/labs/arm/idf-pod10.yaml +++ b/labs/arm/idf-pod10.yaml @@ -142,9 +142,9 @@ idf: compute_kernel_isolcpu: *nova_cpu_pinning_common_arm dpdk: nova_cpu_pinning: "12-47" - compute_hugepages_size: 2M - compute_hugepages_count: 8192 - compute_hugepages_mount: /mnt/hugepages_2M + compute_hugepages_size: 1G + compute_hugepages_count: 16 + compute_hugepages_mount: /mnt/hugepages_1G compute_kernel_isolcpu: *nova_cpu_pinning_common_arm compute_dpdk_driver: vfio compute_ovs_pmd_cpu_mask: "0x300" diff --git a/labs/arm/idf-pod6.yaml b/labs/arm/idf-pod6.yaml index e07c2ea3..6d6c9c37 100644 --- a/labs/arm/idf-pod6.yaml +++ b/labs/arm/idf-pod6.yaml @@ -98,9 +98,9 @@ idf: compute_kernel_isolcpu: *nova_cpu_pinning_common dpdk: nova_cpu_pinning: "12-47" - compute_hugepages_size: 2M - compute_hugepages_count: 8192 - compute_hugepages_mount: /mnt/hugepages_2M + compute_hugepages_size: 1G + compute_hugepages_count: 16 + compute_hugepages_mount: /mnt/hugepages_1G compute_kernel_isolcpu: *nova_cpu_pinning_common compute_dpdk_driver: vfio compute_ovs_pmd_cpu_mask: "0x300" diff --git a/labs/arm/idf-pod7.yaml b/labs/arm/idf-pod7.yaml index d21fd875..2cc681bf 100644 --- a/labs/arm/idf-pod7.yaml +++ b/labs/arm/idf-pod7.yaml @@ -100,9 +100,9 @@ idf: compute_kernel_isolcpu: *nova_cpu_pinning_common_a dpdk: nova_cpu_pinning: "4-47" - compute_hugepages_size: 2M - compute_hugepages_count: 8192 - compute_hugepages_mount: /mnt/hugepages_2M + compute_hugepages_size: 1G + compute_hugepages_count: 16 + compute_hugepages_mount: /mnt/hugepages_1G compute_kernel_isolcpu: *nova_cpu_pinning_common_a compute_dpdk_driver: vfio compute_ovs_pmd_cpu_mask: "0xc" diff --git a/labs/arm/idf-pod8.yaml b/labs/arm/idf-pod8.yaml index 2b0146ac..f5ef7241 100644 --- a/labs/arm/idf-pod8.yaml +++ b/labs/arm/idf-pod8.yaml @@ -96,9 +96,9 @@ idf: compute_kernel_isolcpu: *nova_cpu_pinning_common dpdk: nova_cpu_pinning: "12-47" - compute_hugepages_size: 2M - compute_hugepages_count: 8192 - compute_hugepages_mount: /mnt/hugepages_2M + compute_hugepages_size: 1G + compute_hugepages_count: 16 + compute_hugepages_mount: /mnt/hugepages_1G compute_kernel_isolcpu: *nova_cpu_pinning_common compute_dpdk_driver: vfio compute_ovs_pmd_cpu_mask: "0x300" diff --git a/labs/arm/idf-pod9.yaml b/labs/arm/idf-pod9.yaml index 27ae3cdb..b6252d36 100644 --- a/labs/arm/idf-pod9.yaml +++ b/labs/arm/idf-pod9.yaml @@ -100,9 +100,9 @@ idf: compute_kernel_isolcpu: *nova_cpu_pinning_common dpdk: nova_cpu_pinning: "12-47" - compute_hugepages_size: 2M - compute_hugepages_count: 8192 - compute_hugepages_mount: /mnt/hugepages_2M + compute_hugepages_size: 1G + compute_hugepages_count: 16 + compute_hugepages_mount: /mnt/hugepages_1G compute_kernel_isolcpu: *nova_cpu_pinning_common compute_dpdk_driver: vfio compute_ovs_pmd_cpu_mask: "0x300" diff --git a/labs/arm/idf-virtual2.yaml b/labs/arm/idf-virtual2.yaml index ba025d00..85529187 100644 --- a/labs/arm/idf-virtual2.yaml +++ b/labs/arm/idf-virtual2.yaml @@ -36,7 +36,7 @@ idf: mask: 24 private: interface: 2 - vlan: native + vlan: 1000-1999 network: 10.1.0.0 mask: 24 public: diff --git a/labs/arm/virtual2.yaml b/labs/arm/virtual2.yaml index 3c2b3b10..fda336ce 100644 --- a/labs/arm/virtual2.yaml +++ b/labs/arm/virtual2.yaml @@ -92,22 +92,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual-pod1bl01.yaml b/labs/ericsson/virtual-pod1bl01.yaml index 9edebee4..996a3309 100644 --- a/labs/ericsson/virtual-pod1bl01.yaml +++ b/labs/ericsson/virtual-pod1bl01.yaml @@ -115,22 +115,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual1.yaml b/labs/ericsson/virtual1.yaml index c19d9c79..c7519bf1 100644 --- a/labs/ericsson/virtual1.yaml +++ b/labs/ericsson/virtual1.yaml @@ -115,22 +115,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual2.yaml b/labs/ericsson/virtual2.yaml index 7298b78c..ca3f42eb 100644 --- a/labs/ericsson/virtual2.yaml +++ b/labs/ericsson/virtual2.yaml @@ -115,22 +115,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual3.yaml b/labs/ericsson/virtual3.yaml index 33f2e09f..5c4f6ba7 100644 --- a/labs/ericsson/virtual3.yaml +++ b/labs/ericsson/virtual3.yaml @@ -115,22 +115,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual4.yaml b/labs/ericsson/virtual4.yaml index cbf50f08..de6c5ee5 100644 --- a/labs/ericsson/virtual4.yaml +++ b/labs/ericsson/virtual4.yaml @@ -115,22 +115,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native diff --git a/labs/ericsson/virtual5.yaml b/labs/ericsson/virtual5.yaml index 48260449..0a9e602f 100644 --- a/labs/ericsson/virtual5.yaml +++ b/labs/ericsson/virtual5.yaml @@ -107,22 +107,22 @@ nodes: address: 'qemu:///system' interfaces: &interfaces - name: 'nic1' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" # MACs will be assigned by libvirt vlan: native - name: 'nic2' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic3' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native - name: 'nic4' - speed: 10gb + speed: 1gb features: 'dpdk|sriov' mac_address: "00:00:00:00:00:00" vlan: native |