
Like the ML2 OpenVSwitch agent, the ML2 LinuxBridge agent defines its config in ml2_conf.ini on Ubuntu. This patch updates the neutron_agent_linuxbridge provider to behave the same as the neutron_agent_ovs provider. Closes-Bug: #1480277 Change-Id: I24462f9d04a07926c05790b80ed5f0064fcef97d
27 lines
493 B
Ruby
27 lines
493 B
Ruby
Puppet::Type.type(:neutron_agent_linuxbridge).provide(
|
|
:ini_setting,
|
|
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
|
|
) do
|
|
|
|
def section
|
|
resource[:name].split('/', 2).first
|
|
end
|
|
|
|
def setting
|
|
resource[:name].split('/', 2).last
|
|
end
|
|
|
|
def separator
|
|
'='
|
|
end
|
|
|
|
def file_path
|
|
if Facter['operatingsystem'].value == 'Ubuntu'
|
|
'/etc/neutron/plugins/ml2/ml2_conf.ini'
|
|
else
|
|
'/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini'
|
|
end
|
|
end
|
|
|
|
end
|