Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 1 | SETUPDIR:=../setup |
| 2 | MYIP:=$(shell hostname -i) |
| 3 | |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame] | 4 | cloudlab: common_cloudlab ansible_hosts xos |
Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 5 | |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame] | 6 | devstack: upgrade_pkgs common_devstack ansible_hosts xos |
Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 7 | |
| 8 | xos: vtn_network_cfg_json |
| 9 | sudo MYIP=$(MYIP) docker-compose up -d |
| 10 | bash ../common/wait_for_xos.sh |
| 11 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/base.yaml |
| 12 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
| 13 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/tosca/samples/vtn.yaml |
| 14 | |
Andy Bavier | 1421433 | 2016-01-20 13:18:38 -0800 | [diff] [blame] | 15 | containers: |
| 16 | cd ../../../containers/xos; make devel |
| 17 | cd ../../../containers/synchronizer; make |
| 18 | |
Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 19 | common_cloudlab: |
| 20 | make -C ../common -f Makefile.cloudlab |
| 21 | |
| 22 | common_devstack: |
| 23 | make -C ../common -f Makefile.devstack |
| 24 | |
| 25 | vtn_network_cfg_json: |
| 26 | export SETUPDIR=$(SETUPDIR); bash ../cord/make-vtn-networkconfig-json.sh |
| 27 | |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame] | 28 | ansible_hosts: |
| 29 | sudo bash -c "export SETUPDIR=$(SETUPDIR); scripts/gen-inventory.sh" |
| 30 | |
Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 31 | stop: |
| 32 | sudo MYIP=$(MYIP) docker-compose stop |
| 33 | |
| 34 | showlogs: |
| 35 | sudo MYIP=$(MYIP) docker-compose logs |
| 36 | |
| 37 | rm: stop |
| 38 | sudo MYIP=$(MYIP) docker-compose rm |
| 39 | |
| 40 | ps: |
| 41 | sudo MYIP=$(MYIP) docker-compose ps |
| 42 | |
| 43 | enter-xos: |
| 44 | sudo docker exec -it vtn_xos_1 bash |
| 45 | |
| 46 | enter-synchronizer: |
| 47 | sudo docker exec -it vtn_xos_synchronizer_openstack_1 bash |
| 48 | |
| 49 | upgrade_pkgs: |
| 50 | sudo pip install httpie --upgrade |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame] | 51 | |
| 52 | destroy-networks: |
| 53 | sudo ../../tools/destroy-all-networks.sh |