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 --- charms/trusty/neutron-contrail/files/60-vrouter-vgw.conf | 3 +++ charms/trusty/neutron-contrail/files/contrail-nodemgr-vrouter.ini | 6 ++++++ charms/trusty/neutron-contrail/files/contrail-vrouter-nodemgr | 6 ++++++ charms/trusty/neutron-contrail/files/contrail-vrouter.rules | 3 +++ 4 files changed, 18 insertions(+) create mode 100644 charms/trusty/neutron-contrail/files/60-vrouter-vgw.conf create mode 100644 charms/trusty/neutron-contrail/files/contrail-nodemgr-vrouter.ini create mode 100644 charms/trusty/neutron-contrail/files/contrail-vrouter-nodemgr create mode 100644 charms/trusty/neutron-contrail/files/contrail-vrouter.rules (limited to 'charms/trusty/neutron-contrail/files') diff --git a/charms/trusty/neutron-contrail/files/60-vrouter-vgw.conf b/charms/trusty/neutron-contrail/files/60-vrouter-vgw.conf new file mode 100644 index 0000000..3e7fe4c --- /dev/null +++ b/charms/trusty/neutron-contrail/files/60-vrouter-vgw.conf @@ -0,0 +1,3 @@ +# sysctl values for vrouter gateway + +net.ipv4.ip_forward=1 diff --git a/charms/trusty/neutron-contrail/files/contrail-nodemgr-vrouter.ini b/charms/trusty/neutron-contrail/files/contrail-nodemgr-vrouter.ini new file mode 100644 index 0000000..860812d --- /dev/null +++ b/charms/trusty/neutron-contrail/files/contrail-nodemgr-vrouter.ini @@ -0,0 +1,6 @@ +[eventlistener:contrail-vrouter-nodemgr] +command=/bin/bash -c "exec python /usr/bin/contrail-nodemgr --nodetype=contrail-vrouter" +events=PROCESS_COMMUNICATION,PROCESS_STATE,TICK_60 +buffer_size=10000 +stdout_logfile=/var/log/contrail/contrail-vrouter-nodemgr-stdout.log +stderr_logfile=/var/log/contrail/contrail-vrouter-nodemgr-stderr.log diff --git a/charms/trusty/neutron-contrail/files/contrail-vrouter-nodemgr b/charms/trusty/neutron-contrail/files/contrail-vrouter-nodemgr new file mode 100644 index 0000000..1c6a55b --- /dev/null +++ b/charms/trusty/neutron-contrail/files/contrail-vrouter-nodemgr @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# chkconfig: 2345 99 01 +# description: Juniper Network vRouter Node Manager + +supervisorctl -s unix:///tmp/supervisord_vrouter.sock ${1} `basename ${0}` diff --git a/charms/trusty/neutron-contrail/files/contrail-vrouter.rules b/charms/trusty/neutron-contrail/files/contrail-vrouter.rules new file mode 100644 index 0000000..54cba11 --- /dev/null +++ b/charms/trusty/neutron-contrail/files/contrail-vrouter.rules @@ -0,0 +1,3 @@ +{ "Rules": [ + ] +} -- cgit 1.2.3-korg