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 | 0fdf7c9 | 2016-05-05 17:01:39 -0700 | [diff] [blame] | 15 | echo "export ONOS_USE_SSH=true" |
| 16 | echo "export ONOS_APPS=${apps}" |