Test: Fix k8s contrail ctl interface
Add route to fabric contrail network
This is need for the valid work of a segregated network after deploy
Route for 10.254.0.0/16 fixes random responce from 10.254.0.1
, as described in a PROD-27066
Route for tenant_network fixes status of kube-system pods,
located on cmp nodes
Change-Id: I48f1f4360dd22453e993cecb5328fae095000223
diff --git "a/\173\043 interfaces \043\175/single_k8s_contrail_ctl" "b/\173\043 interfaces \043\175/single_k8s_contrail_ctl"
new file mode 100644
index 0000000..b325254
--- /dev/null
+++ "b/\173\043 interfaces \043\175/single_k8s_contrail_ctl"
@@ -0,0 +1,46 @@
+{#- Control network. For control plane nodes #}
+{#- +Route for access to contrail API #}
+{#- +Route for access to internal https API #}
+{#- Provides: #}
+{#- br_ctl (linux bridge) + address #}
+{#- Requires: #}
+{#- _param:single_address #}
+{#- _param:control_network_netmask #}
+{#- _param:tenant_network_subnet #}
+{#- _param:opencontrail_router01_address #}
+{#- _param:control_vlan #}
+{#- _param:dns_server01 #}
+{#- _param:dns_server02 #}
+ # {{ interfaces_role }}
+ {%- set interface_name = interfaces.keys()[0] %}
+ {{ interface_name }}:
+ enabled: true
+ name: {{ interface_name }}
+ proto: manual
+ type: eth
+ ipflush_onchange: true
+ br_ctl:
+ enabled: true
+ address: ${_param:_esc}{_param:single_address}
+ netmask: ${_param:_esc}{_param:control_network_netmask}
+ proto: static
+ type: bridge
+ name_servers:
+ - ${_param:_esc}{_param:dns_server01}
+ - ${_param:_esc}{_param:dns_server02}
+ use_interfaces:
+ - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
+ require_interfaces:
+ - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
+ post_up_cmds:
+ - ip r rep 10.254.0.0/16 via ${_param:_esc}{_param:single_address}
+ - ip r rep ${_param:_esc}{_param:tenant_network_subnet} via ${_param:_esc}{_param:opencontrail_router01_address}
+ {{ interface_name }}.control_vlan:
+ name: {{ interface_name }}.${_param:_esc}{_param:control_vlan}
+ enabled: true
+ proto: manual
+ type: vlan
+ use_interfaces:
+ - {{ interface_name }}
+ require_interfaces:
+ - {{ interface_name }}