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