aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf
diff options
context:
space:
mode:
Diffstat (limited to 'charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf')
-rw-r--r--charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf44
1 files changed, 44 insertions, 0 deletions
diff --git a/charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf b/charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf
new file mode 100644
index 0000000..3543c2d
--- /dev/null
+++ b/charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf
@@ -0,0 +1,44 @@
+###############################################################################
+# [ WARNING ]
+# Configuration file maintained by Juju. Local changes may be overwritten.
+###############################################################################
+
+{%- if control_nodes %}
+
+[CONTROL-NODE]
+server = {{ control_nodes|join(" ") }}
+
+{%- endif %}
+{%- if discovery_server %}
+
+[DISCOVERY]
+server = {{ discovery_server }}
+
+{%- endif %}
+
+[METADATA]
+metadata_proxy_secret = {{ metadata_secret }}
+
+[NETWORKS]
+control_network_ip = {{ control_network_ip }}
+
+[VIRTUAL-HOST-INTERFACE]
+name = vhost0
+ip = {{ vhost_ip }}
+gateway = {{ vhost_gateway }}
+physical_interface = {{ vhost_physical }}
+
+{%- for vgw in vgws %}
+
+[GATEWAY-{{ loop.index0 }}]
+routing_instance = {{ vgw["domain"] }}:{{ vgw["project"] }}:{{ vgw["network"] }}:{{ vgw["network"] }}
+interface = {{ vgw["interface"] }}
+ip_blocks = {{ vgw["subnets"]|join(" ") }}
+routes = {{ vgw["routes"]|join(" ") }}
+
+{%- endfor %}
+
+[SERVICE-INSTANCE]
+netns_command = /usr/bin/opencontrail-vrouter-netns
+docker_command = /usr/bin/opencontrail-vrouter-docker
+