Remove bridge from nic1 in network bond templates
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / controller.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge
5   with VLANs attached for the controller role.
6
7 parameters:
8   ExternalIpSubnet:
9     default: ''
10     description: IP address/subnet on the external network
11     type: string
12   InternalApiIpSubnet:
13     default: ''
14     description: IP address/subnet on the internal API network
15     type: string
16   StorageIpSubnet:
17     default: ''
18     description: IP address/subnet on the storage network
19     type: string
20   StorageMgmtIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage mgmt network
23     type: string
24   TenantIpSubnet:
25     default: ''
26     description: IP address/subnet on the tenant network
27     type: string
28   BondInterfaceOvsOptions:
29     default: ''
30     description: The ovs_options string for the bond interface. Set things like
31                  lacp=active and/or bond_mode=balance-slb using this option.
32     type: string
33   ExternalNetworkVlanID:
34     default: 10
35     description: Vlan ID for the external network traffic.
36     type: number
37   InternalApiNetworkVlanID:
38     default: 20
39     description: Vlan ID for the internal_api network traffic.
40     type: number
41   StorageNetworkVlanID:
42     default: 30
43     description: Vlan ID for the storage network traffic.
44     type: number
45   StorageMgmtNetworkVlanID:
46     default: 40
47     description: Vlan ID for the storage mgmt network traffic.
48     type: number
49   TenantNetworkVlanID:
50     default: 50
51     description: Vlan ID for the tenant network traffic.
52     type: number
53
54 resources:
55   OsNetConfigImpl:
56     type: OS::Heat::StructuredConfig
57     properties:
58       group: os-apply-config
59       config:
60         os_net_config:
61           network_config:
62             -
63               type: ovs_bridge
64               name: br-bond
65               members:
66                 -
67                   type: ovs_bond
68                   name: {get_input: bridge_name}
69                   ovs_options: {get_param: BondInterfaceOvsOptions}
70                   members:
71                     -
72                       type: interface
73                       name: nic2
74                       primary: true
75                     -
76                       type: interface
77                       name: nic3
78                 -
79                   type: vlan
80                   device: bond1
81                   vlan_id: {get_param: ExternalNetworkVlanID}
82                   addresses:
83                   -
84                     ip_netmask: {get_param: ExternalIpSubnet}
85                 -
86                   type: vlan
87                   device: bond1
88                   vlan_id: {get_param: InternalApiNetworkVlanID}
89                   addresses:
90                   -
91                     ip_netmask: {get_param: InternalApiIpSubnet}
92                 -
93                   type: vlan
94                   device: bond1
95                   vlan_id: {get_param: StorageNetworkVlanID}
96                   addresses:
97                   -
98                     ip_netmask: {get_param: StorageIpSubnet}
99                 -
100                   type: vlan
101                   device: bond1
102                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
103                   addresses:
104                   -
105                     ip_netmask: {get_param: StorageMgmtIpSubnet}
106                 -
107                   type: vlan
108                   device: bond1
109                   vlan_id: {get_param: TenantNetworkVlanID}
110                   addresses:
111                   -
112                     ip_netmask: {get_param: TenantIpSubnet}
113
114 outputs:
115   OS::stack_id:
116     description: The OsNetConfigImpl resource.
117     value: {get_resource: OsNetConfigImpl}