summaryrefslogtreecommitdiffstats
path: root/charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2016-10-07 12:24:58 -0700
committerStuart Mackie <wsmackie@juniper.net>2016-10-07 12:24:58 -0700
commit4faa7f927149a5c4ef7a03523f7bc14523cb9baa (patch)
tree0be55aa0809cc395e45baeae63db660b4e72fe83 /charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf
parent82f1a7eb5535b30a95b1e71ff18c315d40d1e6f0 (diff)
Charms for Contrail 3.1 with Mitaka
Change-Id: Id37f3b9743d1974e31fcd7cd9c54be41bb0c47fb Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
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
+