blob: 59feb2d7f34c78f5052e1d5fe1284ab77d756027 [file] [log] [blame]
Andy Baviera8167a72016-01-11 17:21:11 -05001SETUPDIR:=../setup
2MYIP:=$(shell hostname -i)
3
Andy Baviere6e76cd2016-01-14 16:55:12 -05004cloudlab: common_cloudlab ansible_hosts xos
Andy Baviera8167a72016-01-11 17:21:11 -05005
Andy Baviere6e76cd2016-01-14 16:55:12 -05006devstack: upgrade_pkgs common_devstack ansible_hosts xos
Andy Baviera8167a72016-01-11 17:21:11 -05007
8xos: 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
15common_cloudlab:
16 make -C ../common -f Makefile.cloudlab
17
18common_devstack:
19 make -C ../common -f Makefile.devstack
20
21vtn_network_cfg_json:
22 export SETUPDIR=$(SETUPDIR); bash ../cord/make-vtn-networkconfig-json.sh
23
Andy Baviere6e76cd2016-01-14 16:55:12 -050024ansible_hosts:
25 sudo bash -c "export SETUPDIR=$(SETUPDIR); scripts/gen-inventory.sh"
26
Andy Baviera8167a72016-01-11 17:21:11 -050027stop:
28 sudo MYIP=$(MYIP) docker-compose stop
29
30showlogs:
31 sudo MYIP=$(MYIP) docker-compose logs
32
33rm: stop
34 sudo MYIP=$(MYIP) docker-compose rm
35
36ps:
37 sudo MYIP=$(MYIP) docker-compose ps
38
39enter-xos:
40 sudo docker exec -it vtn_xos_1 bash
41
42enter-synchronizer:
43 sudo docker exec -it vtn_xos_synchronizer_openstack_1 bash
44
45upgrade_pkgs:
46 sudo pip install httpie --upgrade
Andy Baviere6e76cd2016-01-14 16:55:12 -050047
48destroy-networks:
49 sudo ../../tools/destroy-all-networks.sh