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 | |
Pingping Lin | 1b56372 | 2017-01-31 02:01:40 +0000 | [diff] [blame] | 15 | pull_services: |
| 16 | git clone https://gerrit.opencord.org/vBBU ~/xos_services/vBBU |
| 17 | git clone https://gerrit.opencord.org/vMME ~/xos_services/vMME |
| 18 | git clone https://gerrit.opencord.org/vSGW ~/xos_services/vSGW |
| 19 | git clone https://gerrit.opencord.org/vPGWC ~/xos_services/vPGWC |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 20 | |
Pingping Lin | 1b56372 | 2017-01-31 02:01:40 +0000 | [diff] [blame] | 21 | |
| 22 | 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] | 23 | onboarding: |
| 24 | @echo "[ONBOARDING]" |
| 25 | # on-board any services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 26 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 27 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 28 | sudo cp id_rsa key_import/vBBU_rsa |
| 29 | sudo cp id_rsa.pub key_import/vBBU_rsa.pub |
Pingping Lin | eb05ccd | 2016-09-19 21:23:59 +0000 | [diff] [blame] | 30 | sudo cp id_rsa key_import/vPGWC_rsa |
| 31 | sudo cp id_rsa.pub key_import/vPGWC_rsa.pub |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 32 | sudo cp id_rsa key_import/vSGW_rsa |
| 33 | sudo cp id_rsa.pub key_import/vSGW_rsa.pub |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 34 | sudo cp id_rsa key_import/onos_rsa |
Saleil Bhat | 17529f0 | 2017-01-21 17:24:57 -0800 | [diff] [blame] | 35 | sudo cp id_rsa.pub key_import/onos_rsa.pub |
Saleil Bhat | 9462d93 | 2017-01-20 20:09:06 -0800 | [diff] [blame] | 36 | sudo cp id_rsa key_import/vMME_rsa |
Saleil Bhat | 17529f0 | 2017-01-21 17:24:57 -0800 | [diff] [blame] | 37 | sudo cp id_rsa.pub key_import/vMME_rsa.pub |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 38 | $(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] | 39 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
Pingping Lin | 37e727c | 2016-08-29 23:02:12 +0000 | [diff] [blame] | 40 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vBBU/xos/vBBU-onboard.yaml |
Pingping Lin | 97c1261 | 2016-09-19 23:40:53 +0000 | [diff] [blame] | 41 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vPGWC/xos/vPGWC-onboard.yaml |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 42 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vSGW/xos/vSGW-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 43 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 44 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
Saleil Bhat | 9462d93 | 2017-01-20 20:09:06 -0800 | [diff] [blame] | 45 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vMME/xos/vmme-onboard.yaml |
Pingping Lin | 7ba608e | 2017-01-26 08:04:41 +0000 | [diff] [blame] | 46 | #$(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/fabric/xos/fabric-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 47 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 48 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 49 | 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] | 50 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vbbu |
| 51 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vpgwc |
JianHao | 8fa6923 | 2017-01-18 03:05:01 +0000 | [diff] [blame] | 52 | 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] | 53 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 54 | 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] | 55 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vmme |
Pingping Lin | 7ba608e | 2017-01-26 08:04:41 +0000 | [diff] [blame] | 56 | #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] | 57 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 58 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 59 | |
| 60 | podconfig: nodes.yaml images.yaml |
| 61 | @echo "[PODCONFIG]" |
Pingping Lin | 41a6c84 | 2017-01-26 07:57:10 +0000 | [diff] [blame] | 62 | # TODO: the setup create the seconde nodes.Controller named MyOpenStack, this why we delete it for now |
| 63 | # we still need it because it create lots of other services like firewall on the service list |
| 64 | #$(RUN_TOSCA) setup.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 65 | $(RUN_TOSCA) nodes.yaml |
| 66 | $(RUN_TOSCA) images.yaml |
| 67 | |
| 68 | vtn: vtn-external.yaml |
| 69 | $(RUN_TOSCA) vtn-external.yaml |
| 70 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 71 | vtn-external.yaml: |
| 72 | export SETUPDIR=$(CONFIG_DIR); bash ./make-vtn-external-yaml.sh |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 73 | |
Pingping Lin | 82366d3 | 2016-08-31 00:21:56 +0000 | [diff] [blame] | 74 | mcord: |
| 75 | $(RUN_TOSCA) mgmt-net.yaml |
| 76 | $(RUN_TOSCA) mcord.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 77 | |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 78 | onboard-slicing: slicing-ui |
| 79 | @echo "[ONBOARDING]" |
| 80 | # on-board slicing services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 81 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 82 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/disable-onboarding.yaml |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 83 | $(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] | 84 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/mcord_slicing_ui |
| 85 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 86 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 87 | |
Matteo Scandolo | 1105c5b | 2016-10-03 11:25:34 -0700 | [diff] [blame] | 88 | slicing-ui: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 89 | $(RUN_TOSCA) ./mcord-slicing-ui.yaml |
Pingping Lin | 12ec7a9 | 2017-01-25 18:55:58 -0800 | [diff] [blame] | 90 | fabric: |
| 91 | @echo "[FABRIC]" |
| 92 | $(RUN_TOSCA) fabric.yaml |
| 93 | sleep 20 |
| 94 | delete_fabric_config: |
| 95 | curl -sSL --user karaf:karaf -X DELETE http://onos-fabric:8181/onos/v1/network/configuration/ |
| 96 | |
| 97 | reactivate_fabric_apps: |
| 98 | curl -sSL --user karaf:karaf -X POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.vrouter/active |
| 99 | curl -sSL --user karaf:karaf -X POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active |