networking-baremetal: Support [ironic] valid_interfaces
... so that users can select the endpoint to be used for Neutron API call by ironic-neutron-agent. Change-Id: Ibd4b5f0dbc42609cbed076368466c18fec60a5db
This commit is contained in:
parent
df0d55cf78
commit
2b4dd064ca
@ -84,6 +84,10 @@
|
||||
# (optional) Maximum number of retries in case of conflict error (HTTP 409).
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*valid_interfaces*]
|
||||
# (Optional) List of interfaces, in order of preference for endpoint URL.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*purge_config*]
|
||||
# (optional) Whether to set only the specified config options in the
|
||||
# ironic-neutron-agent config.
|
||||
@ -116,6 +120,7 @@ class neutron::agents::ml2::networking_baremetal (
|
||||
$region_name = $::os_service_default,
|
||||
$status_code_retry_delay = $::os_service_default,
|
||||
$status_code_retries = $::os_service_default,
|
||||
$valid_interfaces = $::os_service_default,
|
||||
$purge_config = false,
|
||||
$report_interval = $::os_service_default,
|
||||
) {
|
||||
@ -152,6 +157,7 @@ class neutron::agents::ml2::networking_baremetal (
|
||||
'ironic/region_name': value => $region_name;
|
||||
'ironic/status_code_retry_delay': value => $status_code_retry_delay;
|
||||
'ironic/status_code_retries': value => $status_code_retries;
|
||||
'ironic/valid_interfaces': value => join(any2array($valid_interfaces), ',');
|
||||
'agent/report_interval': value => $report_interval;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The ``neutron::agents::ml2::networking_baremetal`` class now supports
|
||||
the new ``valid_interfaces`` parameter. This parameter controls
|
||||
the ``[ironic] valid_interfaces`` option in ``ironic_neutron_agent.ini``.
|
@ -51,6 +51,7 @@ describe 'neutron::agents::ml2::networking_baremetal' do
|
||||
should contain_ironic_neutron_agent_config('ironic/region_name').with_value('<SERVICE DEFAULT>')
|
||||
should contain_ironic_neutron_agent_config('ironic/status_code_retry_delay').with_value('<SERVICE DEFAULT>')
|
||||
should contain_ironic_neutron_agent_config('ironic/status_code_retries').with_value('<SERVICE DEFAULT>')
|
||||
should contain_ironic_neutron_agent_config('ironic/valid_interfaces').with_value('<SERVICE DEFAULT>')
|
||||
should contain_ironic_neutron_agent_config('agent/report_interval').with_value('<SERVICE DEFAULT>')
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user