Thomas Vachuska | 0fdf7c9 | 2016-05-05 17:01:39 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Creates a cell definition from the given name and LXC info |
| 3 | |
| 4 | name="$1" |
| 5 | apps="${2:-drivers,openflow,proxyarp,mobility,pathpainter}" |
| 6 | |
| 7 | echo "export ONOS_CELL=borrow" |
| 8 | echo "export ONOS_NIC=\"10.128.11.*\"" |
| 9 | |
| 10 | sudo lxc-ls -F "name,ipv4" --fancy | grep $name | \ |
Thomas Vachuska | e91541f | 2016-05-05 23:15:41 -0700 | [diff] [blame] | 11 | sed "s/^$name-/OC/" | tr "[:lower:]" "[:upper:]" | \ |
Thomas Vachuska | 0fdf7c9 | 2016-05-05 17:01:39 -0700 | [diff] [blame] | 12 | sed -r 's/[ ]+/\=/;s/^/export /' |
| 13 | |
Thomas Vachuska | 9e61bd9 | 2016-05-06 15:34:59 -0700 | [diff] [blame] | 14 | echo "export OCT=\"10.128.11.1\"" |
Thomas Vachuska | f009663 | 2016-05-12 12:51:19 -0400 | [diff] [blame] | 15 | echo "export ONOS_USER=sdn" |
Thomas Vachuska | 0fdf7c9 | 2016-05-05 17:01:39 -0700 | [diff] [blame] | 16 | echo "export ONOS_USE_SSH=true" |
| 17 | echo "export ONOS_APPS=${apps}" |
Thomas Vachuska | fdeda92 | 2016-05-16 11:37:00 -0700 | [diff] [blame] | 18 | echo "export ONOS_WEB_USER=onos" |
| 19 | echo "export ONOS_WEB_PASS=rocks" |