blob: 335f83da81f9903b0830bde91647a4515f16e347 [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
Andy Bavier14214332016-01-20 13:18:38 -080015containers:
16 cd ../../../containers/xos; make devel
17 cd ../../../containers/synchronizer; make
18
Andy Baviera8167a72016-01-11 17:21:11 -050019common_cloudlab:
20 make -C ../common -f Makefile.cloudlab
21
22common_devstack:
23 make -C ../common -f Makefile.devstack
24
25vtn_network_cfg_json:
26 export SETUPDIR=$(SETUPDIR); bash ../cord/make-vtn-networkconfig-json.sh
27
Andy Baviere6e76cd2016-01-14 16:55:12 -050028ansible_hosts:
29 sudo bash -c "export SETUPDIR=$(SETUPDIR); scripts/gen-inventory.sh"
30
Andy Baviera8167a72016-01-11 17:21:11 -050031stop:
32 sudo MYIP=$(MYIP) docker-compose stop
33
34showlogs:
35 sudo MYIP=$(MYIP) docker-compose logs
36
37rm: stop
38 sudo MYIP=$(MYIP) docker-compose rm
39
40ps:
41 sudo MYIP=$(MYIP) docker-compose ps
42
43enter-xos:
44 sudo docker exec -it vtn_xos_1 bash
45
46enter-synchronizer:
47 sudo docker exec -it vtn_xos_synchronizer_openstack_1 bash
48
49upgrade_pkgs:
50 sudo pip install httpie --upgrade
Andy Baviere6e76cd2016-01-14 16:55:12 -050051
52destroy-networks:
53 sudo ../../tools/destroy-all-networks.sh