
Change to modify the cisco ml2 nexus section to remove the use of the erb template for configuring the per-nexus switch ML2 config sections. The change adds 2 new defined types which wrap neutron_plugin_ml2 resource usage. Change-Id: I401371c9e5176de7ce19d4d4e878e9f2e69aab80 Closes-bug: #1495537
34 lines
904 B
Puppet
34 lines
904 B
Puppet
# == Define: neutron::plugins::ml2::cisco::nexus_switch
|
|
#
|
|
# Defined type to configure the Cisco Nexus Switch parameters
|
|
# for servers connected to the switch for use by the ML2 Mech
|
|
# Driver for Cisco Nexus Switches.
|
|
#
|
|
# More info available here:
|
|
# https://wiki.openstack.org/wiki/Neutron/ML2/MechCiscoNexus
|
|
#
|
|
#
|
|
# neutron::plugins::ml2::cisco::nexus_switch_server used by
|
|
# neutron::plugins::ml2::cisco::nexus_switch
|
|
#
|
|
# === Parameters:
|
|
# [*switch_ip_address*]
|
|
# (required) The IP address for the switch.
|
|
#
|
|
# [*ports*]
|
|
# (required) The switch ports connected to this server.
|
|
#
|
|
# [*hostname*]
|
|
# (required) The hostname of a host connected to the switch.
|
|
#
|
|
define neutron::plugins::ml2::cisco::nexus_switch_server(
|
|
$switch_ip_address,
|
|
$ports,
|
|
$hostname = $title,
|
|
) {
|
|
$section = "ML2_MECH_CISCO_NEXUS:${switch_ip_address}"
|
|
neutron_plugin_ml2 {
|
|
"${section}/${hostname}": value => $ports;
|
|
}
|
|
}
|