summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch
diff options
context:
space:
mode:
authorGuillermo Herrero <guillermo.herrero@enea.com>2017-10-09 14:54:36 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-12 18:15:05 +0000
commit956d1d0056c54fe4c886126dcf489b547b01d49a (patch)
treeb8b82404efa1829e26f9beea2043a5d6d828cf32 /patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch
parent773df7376cf7eb15e78d1e029bdfc0220634484f (diff)
AArch64 NIC adaptation patch
AArch64 NIC adaptation for dual NIC boards with traffic separation -kvm nodes: added second trunk_nic -compute nodes: removed third external_nic Change-Id: I874094075ab01c7fe21af26602a7366a371cec28 Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com> (cherry picked from commit e7260544c63bfd1e52a52839ad6527b0bc2ce75d)
Diffstat (limited to 'patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch')
-rw-r--r--patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch304
1 files changed, 304 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch b/patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch
new file mode 100644
index 00000000..6088e764
--- /dev/null
+++ b/patches/opnfv-fuel/0004-classes-baremetal-AArch64-NIC-adaptation.patch
@@ -0,0 +1,304 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Guillermo Herrero <guillermo.herrero@enea.com>
+Date: Mon, 9 Oct 2017 14:28:15 +0200
+Subject: [PATCH] classes: baremetal: AArch64: NIC adaptation
+
+AArch64 NIC adaptation for dual NIC boards with traffic separation
+ -kvm nodes: added second trunk_nic
+ -compute nodes: removed third external_nic
+
+Change-Id: Iae73670c7ec6080f420cf61e5f0a79f8424665c9
+Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
+---
+ .../cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml | 12 +++++++++---
+ .../baremetal-mcp-ocata-odl-ha/openstack/compute.yml | 15 ++++-----------
+ .../cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml | 12 +++++++++---
+ .../baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml | 13 +++----------
+ .../cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml | 12 +++++++++---
+ .../baremetal-mcp-ocata-ovs-ha/openstack/compute.yml | 15 ++++-----------
+ 6 files changed, 38 insertions(+), 41 deletions(-)
+
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
+index c9b3bc1..b8b5208 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
+@@ -26,6 +26,7 @@ parameters:
+ keepalived_vip_interface: br-ctl
+ keepalived_vip_virtual_router_id: 69
+ deploy_nic: ${_param:opnfv_baremetal_primary_nic}
++ trunk_nic: ${_param:opnfv_baremetal_secondary_nic}
+ salt:
+ control:
+ size: # RAM 4096,8192,16384,32768,65536
+@@ -148,6 +149,11 @@ parameters:
+ netmask: 255.255.255.0
+ name: ${_param:deploy_nic}
+ noifupdown: true
++ trunk:
++ enabled: true
++ type: eth
++ proto: manual
++ name: ${_param:trunk_nic}
+ br-mgmt:
+ enabled: true
+ proto: dhcp
+@@ -160,9 +166,9 @@ parameters:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:deploy_nic}
++ - ${_param:trunk_nic}
+ br-ctl:
+ enabled: true
+ type: bridge
+@@ -170,4 +176,4 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
+index 032dd84..e898353 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
+@@ -26,7 +26,6 @@ parameters:
+ nova_vncproxy_url: https://${_param:cluster_public_host}:6080
+ mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+ tenant_nic: ${_param:opnfv_baremetal_secondary_nic}
+- external_nic: ${_param:opnfv_baremetal_tertiary_nic}
+ interface_mtu: 1500
+ keepalived_vip_interface: br-ctl
+ keepalived_vip_virtual_router_id: 69
+@@ -77,12 +76,6 @@ parameters:
+ type: eth
+ proto: manual
+ name: ${_param:tenant_nic}
+- external_nic:
+- enabled: true
+- name: ${_param:external_nic}
+- mtu: ${_param:interface_mtu}
+- proto: manual
+- type: eth
+ br-mesh:
+ enabled: true
+ type: bridge
+@@ -95,9 +88,9 @@ parameters:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:mgmt_nic}
++ - ${_param:tenant_nic}
+ tenant-vlan:
+ enabled: true
+ proto: manual
+@@ -112,7 +105,7 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ br-floating:
+ enabled: true
+ type: ovs_bridge
+@@ -129,6 +122,6 @@ parameters:
+ address: ${_param:external_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:external_nic}
++ - ${_param:tenant_nic}
+ use_ovs_ports:
+ - float-to-ex
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml
+index d5f2e92..725c2c0 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml
+@@ -26,6 +26,7 @@ parameters:
+ keepalived_vip_interface: br-ctl
+ keepalived_vip_virtual_router_id: 69
+ deploy_nic: ${_param:opnfv_baremetal_primary_nic}
++ trunk_nic: ${_param:opnfv_baremetal_secondary_nic}
+ salt:
+ control:
+ size: # RAM 4096,8192,16384,32768,65536
+@@ -137,6 +138,11 @@ parameters:
+ netmask: 255.255.255.0
+ name: ${_param:deploy_nic}
+ noifupdown: true
++ trunk:
++ enabled: true
++ type: eth
++ proto: manual
++ name: ${_param:trunk_nic}
+ br-mgmt:
+ enabled: true
+ proto: dhcp
+@@ -149,9 +155,9 @@ parameters:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:deploy_nic}
++ - ${_param:trunk_nic}
+ br-ctl:
+ enabled: true
+ type: bridge
+@@ -159,4 +165,4 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml
+index e8fc087..13d45f7 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml
+@@ -25,7 +25,6 @@ parameters:
+ cluster_node03_address: ${_param:openstack_control_node03_address}
+ nova_vncproxy_url: https://${_param:cluster_public_host}:6080
+ mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+- external_nic: ${_param:opnfv_baremetal_tertiary_nic}
+ interface_mtu: 1500
+ keepalived_vip_interface: br-ctl
+ keepalived_vip_virtual_router_id: 69
+@@ -71,19 +70,13 @@ parameters:
+ type: eth
+ proto: dhcp
+ name: ${_param:mgmt_nic}
+- external_nic:
+- enabled: true
+- name: ${_param:external_nic}
+- mtu: ${_param:interface_mtu}
+- proto: manual
+- type: eth
+ mgmt-vlan:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:mgmt_nic}
++ - ${_param:tenant_nic}
+ br-ctl:
+ enabled: true
+ type: bridge
+@@ -91,7 +84,7 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ br-floating:
+ enabled: true
+ type: ovs_bridge
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
+index eb73e1c..730de08 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
+@@ -26,6 +26,7 @@ parameters:
+ keepalived_vip_interface: br-ctl
+ keepalived_vip_virtual_router_id: 69
+ deploy_nic: ${_param:opnfv_baremetal_primary_nic}
++ trunk_nic: ${_param:opnfv_baremetal_secondary_nic}
+ salt:
+ control:
+ size: # RAM 4096,8192,16384,32768,65536
+@@ -138,6 +139,11 @@ parameters:
+ netmask: 255.255.255.0
+ name: ${_param:deploy_nic}
+ noifupdown: true
++ trunk:
++ enabled: true
++ type: eth
++ proto: manual
++ name: ${_param:trunk_nic}
+ br-mgmt:
+ enabled: true
+ proto: dhcp
+@@ -150,9 +156,9 @@ parameters:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:deploy_nic}
++ - ${_param:trunk_nic}
+ br-ctl:
+ enabled: true
+ type: bridge
+@@ -160,4 +166,4 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:deploy_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:trunk_nic}.${_param:opnfv_net_mgmt_vlan}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
+index 165e0c9..cad293d 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
+@@ -25,7 +25,6 @@ parameters:
+ nova_vncproxy_url: https://${_param:cluster_public_host}:6080
+ mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+ tenant_nic: ${_param:opnfv_baremetal_secondary_nic}
+- external_nic: ${_param:opnfv_baremetal_tertiary_nic}
+ linux_system_codename: xenial
+ interface_mtu: 1500
+ keepalived_vip_interface: br-ctl
+@@ -60,12 +59,6 @@ parameters:
+ type: eth
+ proto: manual
+ name: ${_param:tenant_nic}
+- external_nic:
+- enabled: true
+- name: ${_param:external_nic}
+- mtu: ${_param:interface_mtu}
+- proto: manual
+- type: eth
+ br-mesh:
+ enabled: true
+ type: bridge
+@@ -78,9 +71,9 @@ parameters:
+ enabled: true
+ proto: manual
+ type: vlan
+- name: ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ name: ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ use_interfaces:
+- - ${_param:mgmt_nic}
++ - ${_param:tenant_nic}
+ tenant-vlan:
+ enabled: true
+ proto: manual
+@@ -95,7 +88,7 @@ parameters:
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
++ - ${_param:tenant_nic}.${_param:opnfv_net_mgmt_vlan}
+ br-floating:
+ enabled: true
+ type: ovs_bridge
+@@ -112,6 +105,6 @@ parameters:
+ address: ${_param:external_address}
+ netmask: 255.255.255.0
+ use_interfaces:
+- - ${_param:external_nic}
++ - ${_param:tenant_nic}
+ use_ovs_ports:
+ - float-to-ex