Zack Williams | 7828f22 | 2016-10-19 14:04:51 -0700 | [diff] [blame] | 1 | # mcord/Makefile |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 2 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 3 | CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
Gabe Black | caf7e1c | 2016-11-08 21:49:04 +0000 | [diff] [blame] | 4 | COMMON_DIR := $(CONFIG_DIR)/../common |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 5 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 6 | .DEFAULT_GOAL := xos |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 7 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 8 | DOCKER_PROJECT ?= mcord |
| 9 | BOOTSTRAP_PROJECT ?= mcordbs |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 10 | |
Gabe Black | 86b1afe | 2017-01-12 18:52:51 +0000 | [diff] [blame] | 11 | XOS_UI_PORT := 9000 |
JianHao | 2f6dca2 | 2016-12-22 03:44:52 +0000 | [diff] [blame] | 12 | |
Gabe Black | 8746a93 | 2016-10-28 19:36:15 +0000 | [diff] [blame] | 13 | include $(COMMON_DIR)/Makefile |
| 14 | |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 15 | xos: prereqs config_dirs xos_download cord_services cord_libraries bootstrap onboarding podconfig rest-gw ui |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 16 | |
| 17 | onboarding: |
| 18 | @echo "[ONBOARDING]" |
| 19 | # on-board any services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 20 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 21 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 22 | sudo cp id_rsa key_import/vBBU_rsa |
| 23 | sudo cp id_rsa.pub key_import/vBBU_rsa.pub |
Pingping Lin | eb05ccd | 2016-09-19 21:23:59 +0000 | [diff] [blame] | 24 | sudo cp id_rsa key_import/vPGWC_rsa |
| 25 | sudo cp id_rsa.pub key_import/vPGWC_rsa.pub |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 26 | sudo cp id_rsa key_import/vSGW_rsa |
| 27 | sudo cp id_rsa.pub key_import/vSGW_rsa.pub |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 28 | sudo cp id_rsa key_import/onos_rsa |
Saleil Bhat | 17529f0 | 2017-01-21 17:24:57 -0800 | [diff] [blame] | 29 | sudo cp id_rsa.pub key_import/onos_rsa.pub |
Saleil Bhat | 9462d93 | 2017-01-20 20:09:06 -0800 | [diff] [blame] | 30 | sudo cp id_rsa key_import/vMME_rsa |
Saleil Bhat | 17529f0 | 2017-01-21 17:24:57 -0800 | [diff] [blame] | 31 | sudo cp id_rsa.pub key_import/vMME_rsa.pub |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 32 | $(RUN_TOSCA_BOOTSTRAP) $(LIBRARY_DIR)/ng-xos-lib/ng-xos-lib-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 33 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
Pingping Lin | 37e727c | 2016-08-29 23:02:12 +0000 | [diff] [blame] | 34 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vBBU/xos/vBBU-onboard.yaml |
Pingping Lin | 97c1261 | 2016-09-19 23:40:53 +0000 | [diff] [blame] | 35 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vPGWC/xos/vPGWC-onboard.yaml |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 36 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vSGW/xos/vSGW-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 37 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 38 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
Saleil Bhat | 9462d93 | 2017-01-20 20:09:06 -0800 | [diff] [blame] | 39 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vMME/xos/vmme-onboard.yaml |
Pingping Lin | 12ec7a9 | 2017-01-25 18:55:58 -0800 | [diff] [blame] | 40 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/fabric/xos/fabric-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 41 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 42 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 43 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/ng-xos-lib |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 44 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vbbu |
| 45 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vpgwc |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 46 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vsgw |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 47 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 48 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/onos |
Saleil Bhat | 9462d93 | 2017-01-20 20:09:06 -0800 | [diff] [blame] | 49 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vmme |
Pingping Lin | 12ec7a9 | 2017-01-25 18:55:58 -0800 | [diff] [blame] | 50 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/fabric |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 51 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 52 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 53 | |
| 54 | podconfig: nodes.yaml images.yaml |
| 55 | @echo "[PODCONFIG]" |
| 56 | $(RUN_TOSCA) setup.yaml |
| 57 | $(RUN_TOSCA) nodes.yaml |
| 58 | $(RUN_TOSCA) images.yaml |
| 59 | |
| 60 | vtn: vtn-external.yaml |
| 61 | $(RUN_TOSCA) vtn-external.yaml |
| 62 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 63 | vtn-external.yaml: |
| 64 | export SETUPDIR=$(CONFIG_DIR); bash ./make-vtn-external-yaml.sh |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 65 | |
Pingping Lin | 82366d3 | 2016-08-31 00:21:56 +0000 | [diff] [blame] | 66 | mcord: |
| 67 | $(RUN_TOSCA) mgmt-net.yaml |
| 68 | $(RUN_TOSCA) mcord.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 69 | |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 70 | onboard-slicing: slicing-ui |
| 71 | @echo "[ONBOARDING]" |
| 72 | # on-board slicing services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 73 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 74 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/disable-onboarding.yaml |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 75 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/mcord_slicing_ui/xos/mcord-slicing-onboard.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 76 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/mcord_slicing_ui |
| 77 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 78 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 79 | |
Matteo Scandolo | 1105c5b | 2016-10-03 11:25:34 -0700 | [diff] [blame] | 80 | slicing-ui: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 81 | $(RUN_TOSCA) ./mcord-slicing-ui.yaml |
Pingping Lin | 12ec7a9 | 2017-01-25 18:55:58 -0800 | [diff] [blame] | 82 | fabric: |
| 83 | @echo "[FABRIC]" |
| 84 | $(RUN_TOSCA) fabric.yaml |
| 85 | sleep 20 |
| 86 | delete_fabric_config: |
| 87 | curl -sSL --user karaf:karaf -X DELETE http://onos-fabric:8181/onos/v1/network/configuration/ |
| 88 | |
| 89 | reactivate_fabric_apps: |
| 90 | curl -sSL --user karaf:karaf -X POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.vrouter/active |
| 91 | curl -sSL --user karaf:karaf -X POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active |