Allow to set custom name for agents
Change-Id: I6fa575180565237f7b268e681a1e89513eeccae2
diff --git a/neutron/files/mitaka/neutron-generic.conf.Debian b/neutron/files/mitaka/neutron-generic.conf.Debian
index ee5b2bf..6358414 100644
--- a/neutron/files/mitaka/neutron-generic.conf.Debian
+++ b/neutron/files/mitaka/neutron-generic.conf.Debian
@@ -130,6 +130,9 @@
# this machine. All the agents and services running on this machine must use
# the same host value. (string value)
#host = example.domain
+{% if neutron.host is defined %}
+host = {{ neutron.host }}
+{% endif %}
# Ensure that configured gateway is on subnet. For IPv6, validate only if
# gateway is not a link local address. Deprecated, to be removed during the
diff --git a/neutron/files/newton/neutron-generic.conf.Debian b/neutron/files/newton/neutron-generic.conf.Debian
index a9e3a56..5144b71 100644
--- a/neutron/files/newton/neutron-generic.conf.Debian
+++ b/neutron/files/newton/neutron-generic.conf.Debian
@@ -130,6 +130,9 @@
# this machine. All the agents and services running on this machine must use
# the same host value. (string value)
#host = example.domain
+{% if neutron.host is defined %}
+host = {{ neutron.host }}
+{% endif %}
# Ensure that configured gateway is on subnet. For IPv6, validate only if
# gateway is not a link local address. Deprecated, to be removed during the
diff --git a/neutron/files/ocata/neutron-generic.conf.Debian b/neutron/files/ocata/neutron-generic.conf.Debian
index 0d16a6d..a5d66df 100644
--- a/neutron/files/ocata/neutron-generic.conf.Debian
+++ b/neutron/files/ocata/neutron-generic.conf.Debian
@@ -108,6 +108,9 @@
# this machine. All the agents and services running on this machine must use
# the same host value. (string value)
#host = example.domain
+{% if neutron.host is defined %}
+host = {{ neutron.host }}
+{% endif %}
# Send notification to nova when port status changes (boolean value)
#notify_nova_on_port_status_changes = true
diff --git a/neutron/files/pike/neutron-generic.conf.Debian b/neutron/files/pike/neutron-generic.conf.Debian
index c7e4d64..a2083e0 100644
--- a/neutron/files/pike/neutron-generic.conf.Debian
+++ b/neutron/files/pike/neutron-generic.conf.Debian
@@ -108,6 +108,9 @@
# this machine. All the agents and services running on this machine must use
# the same host value. (string value)
#host = example.domain
+{% if neutron.host is defined %}
+host = {{ neutron.host }}
+{% endif %}
# Send notification to nova when port status changes (boolean value)
#notify_nova_on_port_status_changes = true