Merge "Add prefix --id support for the radvd and dhcrelay"
This commit is contained in:
commit
f4008540c6
|
@ -9,6 +9,12 @@
|
||||||
# Contains the available parameters that need to be configured when using
|
# Contains the available parameters that need to be configured when using
|
||||||
# a IPv6 network. Requires the ipv6-radvd.yaml environment.
|
# a IPv6 network. Requires the ipv6-radvd.yaml environment.
|
||||||
parameter_defaults:
|
parameter_defaults:
|
||||||
|
# Controls radvd parameters AdvManagedFlag and AdvAutonomous. For stateful
|
||||||
|
# addressing these should be AdvManagedFlag: on, AdvAutonomous: off, for
|
||||||
|
# statelss (SLAAC) these should be AdvManagedFlag: off, AdvAutonomous: on.
|
||||||
|
# Type: boolean
|
||||||
|
IPv6_dhcpv6-statefull: False
|
||||||
|
|
||||||
# The Nova flavor to use for the radvd instance
|
# The Nova flavor to use for the radvd instance
|
||||||
# Type: string
|
# Type: string
|
||||||
radvd_flavor: m1.small
|
radvd_flavor: m1.small
|
||||||
|
@ -18,3 +24,11 @@ parameter_defaults:
|
||||||
# Type: string
|
# Type: string
|
||||||
radvd_image: CentOS-7-x86_64-GenericCloud
|
radvd_image: CentOS-7-x86_64-GenericCloud
|
||||||
|
|
||||||
|
# Prefix for the name of the radvd instance
|
||||||
|
# Type: string
|
||||||
|
radvd_prefix: radvd
|
||||||
|
|
||||||
|
# radvd address on the provision network subnet
|
||||||
|
# Type: string
|
||||||
|
radvd_provision_address: fd12:3456:789a:1::fffe
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
# a routed networks environment. Requires the routed-networks.yaml
|
# a routed networks environment. Requires the routed-networks.yaml
|
||||||
# environment.
|
# environment.
|
||||||
parameter_defaults:
|
parameter_defaults:
|
||||||
|
# The IP addresses of DHCP servers to relay DHCP requests to.
|
||||||
|
# Mandatory. This parameter must be set by the user.
|
||||||
|
# Type: json
|
||||||
|
dhcp_ips: <None>
|
||||||
|
|
||||||
# The Nova flavor to use for the dhcrelay instance
|
# The Nova flavor to use for the dhcrelay instance
|
||||||
# Type: string
|
# Type: string
|
||||||
dhcp_relay_flavor: m1.small
|
dhcp_relay_flavor: m1.small
|
||||||
|
@ -19,3 +24,19 @@ parameter_defaults:
|
||||||
# Type: string
|
# Type: string
|
||||||
dhcp_relay_image: CentOS-7-x86_64-GenericCloud
|
dhcp_relay_image: CentOS-7-x86_64-GenericCloud
|
||||||
|
|
||||||
|
# DHCP relay address on the provision2 network subnet
|
||||||
|
# Type: string
|
||||||
|
dhcp_relay_provision2_address: 192.168.25.253
|
||||||
|
|
||||||
|
# DHCP relay address on the provision3 network subnet
|
||||||
|
# Type: string
|
||||||
|
dhcp_relay_provision3_address: 192.168.26.253
|
||||||
|
|
||||||
|
# DHCP relay address on the provision network subnet
|
||||||
|
# Type: string
|
||||||
|
dhcp_relay_provision_address: 192.168.24.253
|
||||||
|
|
||||||
|
# Prefix for the name of the dhcrelay instance
|
||||||
|
# Type: string
|
||||||
|
dhcrelay_prefix: dhcrelay
|
||||||
|
|
||||||
|
|
|
@ -139,18 +139,14 @@ def _generate_id_env(args):
|
||||||
_add_identifier(env_data, 'provision_net2', args.id, default='provision2')
|
_add_identifier(env_data, 'provision_net2', args.id, default='provision2')
|
||||||
_add_identifier(env_data, 'provision_net3', args.id, default='provision3')
|
_add_identifier(env_data, 'provision_net3', args.id, default='provision3')
|
||||||
_add_identifier(env_data, 'public_net', args.id, default='public')
|
_add_identifier(env_data, 'public_net', args.id, default='public')
|
||||||
_add_identifier(env_data,
|
_add_identifier(env_data, 'baremetal_prefix', args.id, default='baremetal')
|
||||||
'baremetal_prefix',
|
|
||||||
args.id,
|
|
||||||
default='baremetal')
|
|
||||||
role = env_data['parameter_defaults'].get('role')
|
role = env_data['parameter_defaults'].get('role')
|
||||||
if role:
|
if role:
|
||||||
_add_identifier(env_data, 'baremetal_prefix', role)
|
_add_identifier(env_data, 'baremetal_prefix', role)
|
||||||
_add_identifier(env_data, 'bmc_prefix', args.id, default='bmc')
|
_add_identifier(env_data, 'bmc_prefix', args.id, default='bmc')
|
||||||
_add_identifier(env_data,
|
_add_identifier(env_data, 'undercloud_name', args.id, default='undercloud')
|
||||||
'undercloud_name',
|
_add_identifier(env_data, 'dhcrelay_prefix', args.id, default='dhcrelay')
|
||||||
args.id,
|
_add_identifier(env_data, 'radvd_prefix', args.id, default='radvd')
|
||||||
default='undercloud')
|
|
||||||
_add_identifier(env_data, 'overcloud_internal_net', args.id,
|
_add_identifier(env_data, 'overcloud_internal_net', args.id,
|
||||||
default='internal')
|
default='internal')
|
||||||
_add_identifier(env_data, 'overcloud_storage_net', args.id,
|
_add_identifier(env_data, 'overcloud_storage_net', args.id,
|
||||||
|
|
|
@ -202,6 +202,11 @@ environments:
|
||||||
parameters:
|
parameters:
|
||||||
- dhcp_relay_flavor
|
- dhcp_relay_flavor
|
||||||
- dhcp_relay_image
|
- dhcp_relay_image
|
||||||
|
- dhcrelay_prefix
|
||||||
|
- dhcp_relay_provision_address
|
||||||
|
- dhcp_relay_provision2_address
|
||||||
|
- dhcp_relay_provision3_address
|
||||||
|
- dhcp_ips
|
||||||
-
|
-
|
||||||
name: routed-networks
|
name: routed-networks
|
||||||
title: Enable Routed Networks
|
title: Enable Routed Networks
|
||||||
|
@ -274,6 +279,9 @@ environments:
|
||||||
parameters:
|
parameters:
|
||||||
- radvd_flavor
|
- radvd_flavor
|
||||||
- radvd_image
|
- radvd_image
|
||||||
|
- radvd_prefix
|
||||||
|
- radvd_provision_address
|
||||||
|
- IPv6_dhcpv6-statefull
|
||||||
-
|
-
|
||||||
name: ipv6-radvd
|
name: ipv6-radvd
|
||||||
title: Enable router advertisement daemon (radvd)
|
title: Enable router advertisement daemon (radvd)
|
||||||
|
|
|
@ -19,6 +19,11 @@ parameters:
|
||||||
The base image for the dhcrelay instance. A CentOS 7 image is currently
|
The base image for the dhcrelay instance. A CentOS 7 image is currently
|
||||||
the only one supported.
|
the only one supported.
|
||||||
|
|
||||||
|
dhcrelay_prefix:
|
||||||
|
type: string
|
||||||
|
default: dhcrelay
|
||||||
|
description: Prefix for the name of the dhcrelay instance
|
||||||
|
|
||||||
dhcp_relay_provision_address:
|
dhcp_relay_provision_address:
|
||||||
type: string
|
type: string
|
||||||
description: DHCP relay address on the provision network subnet
|
description: DHCP relay address on the provision network subnet
|
||||||
|
@ -175,7 +180,7 @@ resources:
|
||||||
dhcp_relay_server:
|
dhcp_relay_server:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
properties:
|
properties:
|
||||||
name: dhcrelay
|
name: {get_param: dhcrelay_prefix}
|
||||||
flavor: {get_param: dhcp_relay_flavor}
|
flavor: {get_param: dhcp_relay_flavor}
|
||||||
image: {get_param: dhcp_relay_image}
|
image: {get_param: dhcp_relay_image}
|
||||||
key_name: {get_param: key_name}
|
key_name: {get_param: key_name}
|
||||||
|
|
|
@ -19,6 +19,11 @@ parameters:
|
||||||
The base image for the radvd instance. A CentOS 7 image is currently
|
The base image for the radvd instance. A CentOS 7 image is currently
|
||||||
the only one supported.
|
the only one supported.
|
||||||
|
|
||||||
|
radvd_prefix:
|
||||||
|
type: string
|
||||||
|
default: radvd
|
||||||
|
description: Prefix for the name of the radvd instance
|
||||||
|
|
||||||
radvd_provision_address:
|
radvd_provision_address:
|
||||||
type: string
|
type: string
|
||||||
description: radvd address on the provision network subnet
|
description: radvd address on the provision network subnet
|
||||||
|
@ -198,7 +203,7 @@ resources:
|
||||||
radvb_server:
|
radvb_server:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
properties:
|
properties:
|
||||||
name: radvd
|
name: {get_param: radvd_prefix}
|
||||||
flavor: {get_param: radvd_flavor}
|
flavor: {get_param: radvd_flavor}
|
||||||
image: {get_param: radvd_image}
|
image: {get_param: radvd_image}
|
||||||
key_name: {get_param: key_name}
|
key_name: {get_param: key_name}
|
||||||
|
|
Loading…
Reference in New Issue