blob: c7c7116e3d6b7c0d3ab84c478d9a9972985ae828 [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
14echo "export OCT=\"\$OC1\""
15echo "export ONOS_USE_SSH=true"
16echo "export ONOS_APPS=${apps}"