Merge "Add contrail tenant interface for heat envs"
diff --git "a/\173\043 interfaces \043\175/bond0_ab_contrail_single" "b/\173\043 interfaces \043\175/bond0_ab_contrail_single"
new file mode 100644
index 0000000..fd4dfd5
--- /dev/null
+++ "b/\173\043 interfaces \043\175/bond0_ab_contrail_single"
@@ -0,0 +1,50 @@
+{#- Interface intended for heat envs         #}
+{#- Provides:                                #}
+{#-   vhost0 , as a keepalived vip interface #}
+{#- Requirements:                            #}
+{#-   _param:tenant_address                  #}
+{#-   _param:tenant_network_netmask          #}
+{#-   _param:tenant_network_gateway          #}
+              # {{ interfaces_role }}
+              {%- for interface_name, interface in interfaces.items() %}
+              {{ interface_name }}:
+                mtu: 1450
+                enabled: true
+                master: bond0
+                name: {{ interface_name }}
+                proto: manual
+                type: slave
+                ipflush_onchange: true
+              {%- endfor %}
+              bond0:
+                mtu: 1450
+                enabled: true
+                mode: active-backup
+                proto: manual
+                slaves: {{ ' '.join(interfaces.keys()) }}
+                type: bond
+                use_interfaces:
+                {%- for interface_name in interfaces.keys() %}
+                - {{ interface_name }}
+                {%- endfor %}
+                require_interfaces:
+                {%- for interface_name in interfaces.keys() %}
+                - {{ interface_name }}
+                {%- endfor %}
+              {{- set_param('keepalived_vip_interface', 'vhost0') }}
+              vhost0:
+                mtu: 1450
+                address: ${_param:_esc}{_param:tenant_address}
+                netmask: ${_param:_esc}{_param:tenant_network_netmask}
+                enabled: true
+                proto: static
+                type: eth
+                pre_up_cmds:
+                - /usr/lib/contrail/if-vhost0
+                name_servers:
+                - ${_param:_esc}{_param:dns_server01}
+                - ${_param:_esc}{_param:dns_server02}
+                use_interfaces:
+                - bond0
+                require_interfaces:
+                - bond0