Allow to set address-related parameters in interface arguments
There is a fixed list of allowed parameters that can be set
as interface parameters to override the values from cluster model.
List of allowed parameters can be found in the file:
{# roles #}/_linux_network_interface
Example for single_address, control_network_netmask and control_vlan:
kvm01.mcp11-ovs-dpdk.local:
reclass_storage_name: infra_kvm_node01
roles:
- infra_kvm
- linux_system_codename_xenial
interfaces:
ens3:
role: single_dhcp
ens4:
role: single_vlan_ctl
single_address: 1.2.3.4
control_network_netmask: 255.255.252.0
control_vlan: 1234
Change-Id: I52f1250a3af510275d7741a1717a04be348778b8
diff --git "a/\173\043 interfaces \043\175/bond2_dpdk_prv" "b/\173\043 interfaces \043\175/bond2_dpdk_prv"
index 39bc013..57822bc 100644
--- "a/\173\043 interfaces \043\175/bond2_dpdk_prv"
+++ "b/\173\043 interfaces \043\175/bond2_dpdk_prv"
@@ -2,8 +2,7 @@
{#- br-prv (OVS bridge) #}
{#- Requirements: #}
{#- _param:tenant_address #}
-{#- _param:tenant_netmask #}
-
+{#- _param:tenant_network_netmask #}
# {{ interfaces_role }}
{%- for interface_name, interface in interfaces.items() %}
{{ interface_name }}:
@@ -23,5 +22,5 @@
br-prv:
address: ${_param:_esc}{_param:tenant_address}
enabled: true
- netmask: ${_param:_esc}{_param:tenant_netmask}
- type: dpdk_ovs_bridge
+ netmask: ${_param:_esc}{_param:tenant_network_netmask}
+ type: dpdk_ovs_bridge
\ No newline at end of file