blob: b92370791ce55878ff6e0567c98616fbe8aeb813 [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 Vachuskaf0096632016-05-12 12:51:19 -040015echo "export ONOS_USER=sdn"
Thomas Vachuska0fdf7c92016-05-05 17:01:39 -070016echo "export ONOS_USE_SSH=true"
17echo "export ONOS_APPS=${apps}"
Thomas Vachuskafdeda922016-05-16 11:37:00 -070018echo "export ONOS_WEB_USER=onos"
19echo "export ONOS_WEB_PASS=rocks"