blob: 43656ee03c945db90ad12158125ae3da699f0c53 [file] [log] [blame]
Thomas Vachuska0fdf7c92016-05-05 17:01:39 -07001#!/bin/bash
2# Creates a cell definition from the given name and LXC info
3
4name="$1"
5apps="${2:-drivers,openflow,proxyarp,mobility,pathpainter}"
6
7echo "export ONOS_CELL=borrow"
8echo "export ONOS_NIC=\"10.128.11.*\""
9
10sudo lxc-ls -F "name,ipv4" --fancy | grep $name | \
Thomas Vachuskae91541f2016-05-05 23:15:41 -070011 sed "s/^$name-/OC/" | tr "[:lower:]" "[:upper:]" | \
Thomas Vachuska0fdf7c92016-05-05 17:01:39 -070012 sed -r 's/[ ]+/\=/;s/^/export /'
13
Thomas Vachuska9e61bd92016-05-06 15:34:59 -070014echo "export OCT=\"10.128.11.1\""
Thomas Vachuska0fdf7c92016-05-05 17:01:39 -070015echo "export ONOS_USE_SSH=true"
16echo "export ONOS_APPS=${apps}"