From 4faa7f927149a5c4ef7a03523f7bc14523cb9baa Mon Sep 17 00:00:00 2001 From: Stuart Mackie Date: Fri, 7 Oct 2016 12:24:58 -0700 Subject: Charms for Contrail 3.1 with Mitaka Change-Id: Id37f3b9743d1974e31fcd7cd9c54be41bb0c47fb Signed-off-by: Stuart Mackie --- .../templates/contrail-vrouter-agent.conf | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf (limited to 'charms/trusty/neutron-contrail/templates/contrail-vrouter-agent.conf') 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 + -- cgit 1.2.3-korg