67 lines
1.9 KiB
Puppet
67 lines
1.9 KiB
Puppet
#
|
|
# Install the OpenDaylight and generate config file
|
|
# from parameters in the other classes.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*sdn_username*]
|
|
# (optional) The Mellanox controller username
|
|
# Defaults to $::os_service_default
|
|
# Example: 'admin'
|
|
#
|
|
# [*sdn_password*]
|
|
# (optional) The Mellanox controller password
|
|
# Defaults to $::os_service_default
|
|
# Example: 'admin'
|
|
#
|
|
# [*sdn_url*]
|
|
# (optional) The Mellanox controller neutron URL
|
|
# Defaults to $::os_service_default
|
|
# Example: 'http://127.0.0.1/neo'
|
|
#
|
|
# [*sdn_domain*]
|
|
# (optional) The Mellanox controller domain
|
|
# Defaults to $::os_service_default
|
|
# Example: 'cloudx'
|
|
#
|
|
# [*sync_enabled*]
|
|
# (optional) Whether synchronising state to an
|
|
# SDN provider is enabled.
|
|
# Defaults to true
|
|
#
|
|
# [*bind_normal_ports*]
|
|
# (optional) Allow the binding of normal ports for ports
|
|
# associated with a physnet from bind_normal_ports_physnets
|
|
# Defaults to false
|
|
#
|
|
# [*bind_normal_ports_physnets*]
|
|
# (optional) A list of physnets in which binding of normal
|
|
# ports is allowed. This option is used in conjuction
|
|
# with bind_normal_ports.
|
|
# The list must be a subset of physical_networks
|
|
# Defaults to []
|
|
#
|
|
class neutron::plugins::ml2::mellanox::mlnx_sdn_assist (
|
|
$sdn_username = $::os_service_default,
|
|
$sdn_password = $::os_service_default,
|
|
$sdn_url = $::os_service_default,
|
|
$sdn_domain = $::os_service_default,
|
|
$sync_enabled = true,
|
|
$bind_normal_ports = false,
|
|
$bind_normal_ports_physnets = [],
|
|
) {
|
|
|
|
include neutron::deps
|
|
require ::neutron::plugins::ml2
|
|
|
|
neutron_plugin_ml2 {
|
|
'sdn/username': value => $sdn_username;
|
|
'sdn/password': value => $sdn_password, secret => true;
|
|
'sdn/url': value => $sdn_url;
|
|
'sdn/domain': value => $sdn_domain;
|
|
'sdn/sync_enabled': value => $sync_enabled;
|
|
'sdn/bind_normal_ports': value => $bind_normal_ports;
|
|
'sdn/bind_normal_ports_physnets': value => $bind_normal_ports_physnets;
|
|
}
|
|
}
|