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 | |
| 15 | common_cloudlab: |
| 16 | make -C ../common -f Makefile.cloudlab |
| 17 | |
| 18 | common_devstack: |
| 19 | make -C ../common -f Makefile.devstack |
| 20 | |
| 21 | vtn_network_cfg_json: |
| 22 | export SETUPDIR=$(SETUPDIR); bash ../cord/make-vtn-networkconfig-json.sh |
| 23 | |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame^] | 24 | ansible_hosts: |
| 25 | sudo bash -c "export SETUPDIR=$(SETUPDIR); scripts/gen-inventory.sh" |
| 26 | |
Andy Bavier | a8167a7 | 2016-01-11 17:21:11 -0500 | [diff] [blame] | 27 | stop: |
| 28 | sudo MYIP=$(MYIP) docker-compose stop |
| 29 | |
| 30 | showlogs: |
| 31 | sudo MYIP=$(MYIP) docker-compose logs |
| 32 | |
| 33 | rm: stop |
| 34 | sudo MYIP=$(MYIP) docker-compose rm |
| 35 | |
| 36 | ps: |
| 37 | sudo MYIP=$(MYIP) docker-compose ps |
| 38 | |
| 39 | enter-xos: |
| 40 | sudo docker exec -it vtn_xos_1 bash |
| 41 | |
| 42 | enter-synchronizer: |
| 43 | sudo docker exec -it vtn_xos_synchronizer_openstack_1 bash |
| 44 | |
| 45 | upgrade_pkgs: |
| 46 | sudo pip install httpie --upgrade |
Andy Bavier | e6e76cd | 2016-01-14 16:55:12 -0500 | [diff] [blame^] | 47 | |
| 48 | destroy-networks: |
| 49 | sudo ../../tools/destroy-all-networks.sh |