blob: 12fd2844b7eaf2a5516e8fe99142d2a102e091e4 [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 | \
11 sed "s/^$name/OC/" | tr "[:lower:]" "[:upper:]" | \
12 sed -r 's/[ ]+/\=/;s/^/export /'
13
14echo "export OCT=\"\$OC1\""
15echo "export ONOS_USE_SSH=true"
16echo "export ONOS_APPS=${apps}"