Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6947f51
Update f5_bigip_cluster_n_nic_env.yaml
oss-forks-experimental Mar 1, 2019
d56eed4
Update f5_bigip_cluster_n_nic_env.yaml
oss-forks-experimental Mar 1, 2019
37aacb7
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 1, 2019
48fdc02
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 1, 2019
34cb773
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 1, 2019
6b5ac29
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 1, 2019
6282d4b
Update bigip_nnic_handler.yaml
oss-forks-experimental Mar 1, 2019
b811833
Update bigip_neutron_ports.yaml
oss-forks-experimental Mar 1, 2019
f99c330
Update bigip_neutron_port.yaml
oss-forks-experimental Mar 1, 2019
7e83613
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 4, 2019
b887265
Update bigip_neutron_port.yaml
oss-forks-experimental Mar 4, 2019
d0be1f2
Update bigip_neutron_ports.yaml
oss-forks-experimental Mar 4, 2019
ad2eb98
Update bigip_nnic_handler.yaml
oss-forks-experimental Mar 4, 2019
9b9eb7b
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 6, 2019
34b3ef9
Update bigip_nnic_handler.yaml
oss-forks-experimental Mar 6, 2019
fb0a1cb
Update bigip_neutron_ports.yaml
oss-forks-experimental Mar 6, 2019
bba0dc2
Update bigip_neutron_port.yaml
oss-forks-experimental Mar 6, 2019
b444168
Update bigip_neutron_port.yaml
oss-forks-experimental Mar 8, 2019
12e6645
Update bigip_neutron_port.yaml
oss-forks-experimental Mar 8, 2019
9e7cf2e
Update bigip_neutron_ports.yaml
oss-forks-experimental Mar 8, 2019
4a346d2
Update bigip_nnic_handler.yaml
oss-forks-experimental Mar 8, 2019
92725ec
Update f5_bigip_cluster_n_nic.yaml
oss-forks-experimental Mar 8, 2019
a4e5133
Update bigip_nnic_handler.yaml
oss-forks-experimental Mar 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 36 additions & 10 deletions experimental/networks/bigip_neutron_port.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
heat_template_version: 2016-04-08
heat_template_version: ocata

description: This template creates a standard neutron port to associate with a Big-IP instance. This template uses an index parameter that enables ports to be created as part of a resource group.

Expand All @@ -19,6 +19,18 @@ parameters:
type: comma_delimited_list
label: Network Subnets
description: A list of subnets the ports should be created in
network_static_self_ips:
type: json
label: Fixed Static IPs
description: A list of Fixed IPs
default: []

conditions:
fixed_IP:
not:
equals:
- get_param: network_static_self_ips
- []

resources:
bigip_neutron_port:
Expand All @@ -31,15 +43,29 @@ resources:
- ip_address: 0.0.0.0/0
- ip_address: ::/0
fixed_ips:
repeat:
for_each:
<%subnet%>:
str_split:
- ';'
- { get_param: [network_subnets, { get_param: index }] }
template:
subnet: <%subnet%>

if:
- fixed_IP
- repeat:
for_each:
<%subnet%>:
str_split:
- ';'
- { get_param: [network_subnets, { get_param: index }] }
<%ip_address%>:
str_split:
- ';'
- { get_param: [network_static_self_ips, { get_param: index }] }
template:
subnet: <%subnet%>
ip_address: <%ip_address%>
- repeat:
for_each:
<%subnet%>:
str_split:
- ';'
- { get_param: [network_subnets, { get_param: index }] }
template:
subnet: <%subnet%>
outputs:
neutron_port_id:
value: {get_resource: bigip_neutron_port}
Expand Down
8 changes: 7 additions & 1 deletion experimental/networks/bigip_neutron_ports.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
heat_template_version: 2016-04-08
heat_template_version: ocata

description: This template creates a standard neutron port to associate with a Big-IP instance. This template uses an index parameter that enables ports to be created as part of a resource group.

Expand All @@ -19,6 +19,11 @@ parameters:
type: comma_delimited_list
label: Network Subnets
description: A list of subnets the ports should be created in
network_static_self_ips:
type: json
label: Fixed IPs to map to the BIG-IP
description: Fixed IPs for the corresponding VLANs.
default: []

resources:
network_vlan_ports:
Expand All @@ -31,6 +36,7 @@ resources:
index: "%index%"
network_names: { get_param: network_names }
network_subnets: { get_param: network_subnets }
network_static_self_ips: { get_param: network_static_self_ips }
security_groups: { get_param: security_group_ids }

outputs:
Expand Down
18 changes: 17 additions & 1 deletion experimental/networks/bigip_nnic_handler.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
heat_template_version: 2016-04-08
heat_template_version: ocata

description: This template builds components for dynamic number of nics.

Expand All @@ -15,6 +15,11 @@ parameters:
type: comma_delimited_list
label: OS Neutron Subnets to map to the BIG-IP VLANs
description: The Neutron Subnets for the corresponding BIG-IP VLANs.
network_vlan_static_self_ips:
type: json
label: Fixed IPs to map to the BIG-IP
description: Fixed IPs for the corresponding VLANs.
default: []
network_vlan_security_group_ids:
type: comma_delimited_list
label: Security Group IDs
Expand Down Expand Up @@ -54,6 +59,12 @@ parameters:
description: Additonal options to add to curl_cli value of the WaitConditionHandle that enables status signals to be sent back to Heat
default: None

conditions:
static_IP:
not:
equals:
- get_param: network_vlan_static_self_ips
- []

resources:

Expand All @@ -63,6 +74,11 @@ resources:
count: { get_param: bigip_nic_count }
network_names: { get_param: network_vlan_names }
network_subnets: { get_param: network_vlan_subnets }
network_static_self_ips:
if:
- static_IP
- get_param: network_vlan_static_self_ips
- []
security_group_ids: { get_param: network_vlan_security_group_ids }

onboard_network_config:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
heat_template_version: 2016-04-08
heat_template_version: ocata
description: This template deploys standard f5 BIG-IP VE - NNIC instances in a config-sync cluster.
parameters:
bigip_image:
Expand Down Expand Up @@ -188,6 +188,13 @@ parameters:
description: Network to which the BIG-IP management interface is attached.
constraints:
- custom_constraint: neutron.network
mgmt_subnet:
type: string
label: Management Network Subnet
description: Network Subnet to which the BIG-IP management interface is attached.
constraints:
- custom_constraint: neutron.subnet
default: None
mgmt_security_group_name:
type: string
label: Management Security Group Name
Expand All @@ -204,6 +211,25 @@ parameters:
type: json
label: OS Neutron Port Fixed IPs Subnets
description: The list of Neutron Subnets for each Port's Fixed IP with each item in the format <subnetName;subnetName;subnetName>. Each item's first IP will be configured as self ip on the BIG-IP VLAN.
network_vlan_static_self_ips:
type: json
label: OS Neutron Port Fixed IPs
description: The list of Neutron Fixed IPs that will be configured as a self ip on the BIG-IP VLAN
default: []
bigip1_mgmt_IP:
type: string
label: BIG-IP Instance One Management IP
description: Fixed Static IP address for the BIG-IP instance one
default: None
#constraints:
#- custom_constraint: ip_addr
bigip2_mgmt_IP:
type: string
label: BIG-IP Instance Two Management IP
description: Fixed Static IP address for the BIG-IP instance two
default: None
#constraints:
#- custom_constraint: ip_addr
network_vlan_names_cluster_index:
type: number
label: OS Neutron VLAN Index for Cluster Fixed IP
Expand Down Expand Up @@ -284,6 +310,27 @@ parameters:
label: Additional Heat Wait Condition Notify Curl Options
description: Additional options for the heat wait condition signals sent via curl
default: None
conditions:
mgmt_ip1:
not:
equals:
- get_param: bigip1_mgmt_IP
- None
mgmt_ip2:
not:
equals:
- get_param: bigip2_mgmt_IP
- None
other_ips:
not:
equals:
- get_param: network_vlan_static_self_ips
- []
static_IP:
and:
- mgmt_ip1
- mgmt_ip2
- other_ips
parameter_groups:
- label: BIG-IP General Provisioning
parameters:
Expand Down Expand Up @@ -328,10 +375,12 @@ parameter_groups:
- label: OS Network
parameters:
- mgmt_network
- mgmt_subnet
- mgmt_security_group_name
- network_vlan_security_group_rules
- network_vlan_names
- network_vlan_subnets
- network_vlan_static_self_ips
- network_vlan_subnets_cluster_index
- network_vlan_names_cluster_index
- label: BIG-IP Network
Expand Down Expand Up @@ -446,6 +495,12 @@ resources:
type: OS::Neutron::Port
properties:
network: { get_param: mgmt_network }
fixed_ips:
if:
- static_IP
- - subnet_id: {get_param: mgmt_subnet}
ip_address: {get_param: bigip1_mgmt_IP}
- - subnet_id: {get_param: mgmt_subnet}
security_groups:
- { get_attr: [mgmt_security_group, mgmt_security_group_id] }
bigip_nnic_handler_bigip1:
Expand All @@ -454,6 +509,11 @@ resources:
bigip_nic_count: { get_param: bigip_nic_count }
network_vlan_names: { get_param: network_vlan_names }
network_vlan_subnets: { get_param: [network_vlan_subnets, 0] }
network_vlan_static_self_ips:
if:
- static_IP
- get_param: [network_vlan_static_self_ips, 0]
- []
network_vlan_security_group_ids: { get_attr: [security_groups, security_group_id] }
bigip_vlan_names: { get_param: bigip_vlan_names }
bigip_vlan_tags: { get_param: bigip_vlan_tags }
Expand Down Expand Up @@ -601,6 +661,12 @@ resources:
type: OS::Neutron::Port
properties:
network: { get_param: mgmt_network }
fixed_ips:
if:
- static_IP
- - subnet_id: {get_param: mgmt_subnet}
ip_address: {get_param: bigip2_mgmt_IP}
- - subnet_id: {get_param: mgmt_subnet}
security_groups:
- { get_attr: [mgmt_security_group, mgmt_security_group_id] }
bigip_nnic_handler_bigip2:
Expand All @@ -609,6 +675,11 @@ resources:
bigip_nic_count: { get_param: bigip_nic_count }
network_vlan_names: { get_param: network_vlan_names }
network_vlan_subnets: { get_param: [network_vlan_subnets, 1] }
network_vlan_static_self_ips:
if:
- static_IP
- get_param: [network_vlan_static_self_ips, 1]
- []
network_vlan_security_group_ids: { get_attr: [security_groups, security_group_id] }
bigip_vlan_names: { get_param: bigip_vlan_names }
bigip_vlan_tags: { get_param: bigip_vlan_tags }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ parameters:
bigip_mgmt_nic_mtu: 1400
bigip_servers_dns:
mgmt_network: mgmt-dhcp-disabled
mgmt_subnet: mgmt-dhcp-disabled_subnet
mgmt_security_group_name: Mgmt_secgroup_2_NIC_cluster

bigip1_mgmt_IP: 169.1.2.10
bigip2_mgmt_IP: 169.1.2.20

bigip_nic_count: 2
network_vlan_names_cluster_index: 1
network_vlan_subnets_cluster_index: 1
Expand All @@ -41,6 +46,17 @@ parameters:
- dev-data3-subnet1
- dev-data4-subnet
- dev-data5-subnet
network_vlan_static_self_ips:
- - 10.1.1.10
- 10.1.2.10
- 10.1.3.10
- 10.1.4.10
- 10.1.5.10
- - 10.1.1.20
- 10.1.2.20
- 10.1.3.20
- 10.1.4.20
- 10.1.5.20
network_vlan_security_group_rules:
security_group_rules:
- rules:
Expand Down