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 | 8746a93 | 2016-10-28 19:36:15 +0000 | [diff] [blame] | 11 | include $(COMMON_DIR)/Makefile |
| 12 | |
Scott Baker | 62d2428 | 2016-10-21 09:19:11 -0700 | [diff] [blame] | 13 | xos: prereqs config_dirs xos_download cord_services cord_libraries bootstrap onboarding podconfig |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 14 | |
| 15 | onboarding: |
| 16 | @echo "[ONBOARDING]" |
| 17 | # on-board any services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 18 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 19 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 20 | sudo cp id_rsa key_import/vBBU_rsa |
| 21 | sudo cp id_rsa.pub key_import/vBBU_rsa.pub |
Pingping Lin | eb05ccd | 2016-09-19 21:23:59 +0000 | [diff] [blame] | 22 | sudo cp id_rsa key_import/vPGWC_rsa |
| 23 | sudo cp id_rsa.pub key_import/vPGWC_rsa.pub |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 24 | sudo cp id_rsa key_import/onos_rsa |
| 25 | sudo cp id_rsa key_import/onos_rsa.pub |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 26 | $(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] | 27 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
Pingping Lin | 37e727c | 2016-08-29 23:02:12 +0000 | [diff] [blame] | 28 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vBBU/xos/vBBU-onboard.yaml |
Pingping Lin | 97c1261 | 2016-09-19 23:40:53 +0000 | [diff] [blame] | 29 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vPGWC/xos/vPGWC-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 30 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 31 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
Matteo Scandolo | b286a6a | 2016-10-03 13:27:00 -0700 | [diff] [blame] | 32 | # $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/fabric/xos/\fabric-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 33 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 34 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 35 | 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] | 36 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vbbu |
| 37 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vpgwc |
| 38 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 39 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/onos |
| 40 | # bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/fabric |
| 41 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 42 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 43 | |
| 44 | podconfig: nodes.yaml images.yaml |
| 45 | @echo "[PODCONFIG]" |
| 46 | $(RUN_TOSCA) setup.yaml |
| 47 | $(RUN_TOSCA) nodes.yaml |
| 48 | $(RUN_TOSCA) images.yaml |
| 49 | |
| 50 | vtn: vtn-external.yaml |
| 51 | $(RUN_TOSCA) vtn-external.yaml |
| 52 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 53 | vtn-external.yaml: |
| 54 | export SETUPDIR=$(CONFIG_DIR); bash ./make-vtn-external-yaml.sh |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 55 | |
Pingping Lin | 82366d3 | 2016-08-31 00:21:56 +0000 | [diff] [blame] | 56 | mcord: |
| 57 | $(RUN_TOSCA) mgmt-net.yaml |
| 58 | $(RUN_TOSCA) mcord.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 59 | |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 60 | onboard-slicing: slicing-ui |
| 61 | @echo "[ONBOARDING]" |
| 62 | # on-board slicing services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 63 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 64 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/disable-onboarding.yaml |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 65 | $(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] | 66 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/mcord_slicing_ui |
| 67 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 68 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 69 | |
Matteo Scandolo | 1105c5b | 2016-10-03 11:25:34 -0700 | [diff] [blame] | 70 | slicing-ui: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 71 | $(RUN_TOSCA) ./mcord-slicing-ui.yaml |