diff --git a/ansible/roles/neutron/templates/dhcp_agent.ini.j2 b/ansible/roles/neutron/templates/dhcp_agent.ini.j2 index 2c525a1b04..7b96582402 100644 --- a/ansible/roles/neutron/templates/dhcp_agent.ini.j2 +++ b/ansible/roles/neutron/templates/dhcp_agent.ini.j2 @@ -17,6 +17,8 @@ dhcp_override_mac = {{ vmware_dvs_dhcp_override_mac }} {% endif %} {% endif %} +{% if neutron_plugin_agent in ['openvswitch', 'ovn'] %} [ovs] ovsdb_connection = tcp:127.0.0.1:{{ ovsdb_port }} ovsdb_timeout = {{ ovsdb_timeout }} +{% endif %} diff --git a/ansible/roles/neutron/templates/l3_agent.ini.j2 b/ansible/roles/neutron/templates/l3_agent.ini.j2 index df5d73d89e..32b0a984c8 100644 --- a/ansible/roles/neutron/templates/l3_agent.ini.j2 +++ b/ansible/roles/neutron/templates/l3_agent.ini.j2 @@ -26,6 +26,8 @@ enable_detailed_logging = {{ neutron_logging_debug }} vpn_device_driver = {{ vpn_device_driver }} {% endif %} +{% if neutron_plugin_agent in ['openvswitch', 'ovn'] %} [ovs] ovsdb_connection = tcp:127.0.0.1:{{ ovsdb_port }} ovsdb_timeout = {{ ovsdb_timeout }} +{% endif %}