Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 1 | # cord-pod/Makefile |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 2 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 3 | CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
| 4 | COMMON_DIR := $(abspath ../common ) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 5 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 6 | .DEFAULT_GOAL := xos |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 7 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 8 | DOCKER_PROJECT ?= cordpod |
| 9 | BOOTSTRAP_PROJECT ?= cordpodbs |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 10 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 11 | # Include common functions |
| 12 | include $(COMMON_DIR)/Makefile |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 13 | |
Scott Baker | 62d2428 | 2016-10-21 09:19:11 -0700 | [diff] [blame] | 14 | xos: prereqs config_dirs xos_download cord_services cord_libraries bootstrap onboarding podconfig |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 15 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 16 | onboarding: synchronizers.yaml id_rsa id_rsa.pub |
Scott Baker | c5e2f3c | 2016-07-11 11:48:06 -0700 | [diff] [blame] | 17 | @echo "[ONBOARDING]" |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 18 | # on-board any services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 19 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 20 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 21 | sudo cp id_rsa key_import/vsg_rsa |
| 22 | sudo cp id_rsa.pub key_import/vsg_rsa.pub |
| 23 | sudo cp id_rsa key_import/volt_rsa |
| 24 | sudo cp id_rsa.pub key_import/volt_rsa.pub |
| 25 | sudo cp id_rsa key_import/onos_rsa |
| 26 | sudo cp id_rsa key_import/onos_rsa.pub |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame^] | 27 | $(RUN_TOSCA_BOOTSTRAP) $(LIBRARY_DIR)/ng-xos-lib/ng-xos-lib-onboard.yaml |
Scott Baker | 989959c | 2016-08-11 19:22:52 -0700 | [diff] [blame] | 28 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 29 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vrouter/xos/vrouter-onboard.yaml |
| 30 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/olt/xos/volt-onboard.yaml |
| 31 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vsg/xos/vsg-onboard.yaml |
| 32 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 33 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 34 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/fabric/xos/fabric-onboard.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 35 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtr/xos/vtr-onboard.yaml |
| 36 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 37 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame^] | 38 | 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] | 39 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vrouter |
| 40 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/volt |
| 41 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vsg |
| 42 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 43 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/onos |
| 44 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/fabric |
| 45 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtr |
| 46 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 47 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 48 | |
| 49 | podconfig: nodes.yaml images.yaml |
Scott Baker | c5e2f3c | 2016-07-11 11:48:06 -0700 | [diff] [blame] | 50 | @echo "[PODCONFIG]" |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 51 | $(RUN_TOSCA) $(COMMON_DIR)/tosca/setup.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 52 | $(RUN_TOSCA) nodes.yaml |
| 53 | $(RUN_TOSCA) images.yaml |
| 54 | |
| 55 | vtn: vtn-external.yaml |
| 56 | $(RUN_TOSCA) vtn-external.yaml |
| 57 | |
Andy Bavier | 712e134 | 2016-07-28 17:01:53 -0400 | [diff] [blame] | 58 | delete_fabric_config: |
Andy Bavier | abdbf30 | 2016-07-28 20:25:53 -0400 | [diff] [blame] | 59 | http -a karaf:karaf DELETE http://onos-fabric:8181/onos/v1/network/configuration/ |
Andy Bavier | 712e134 | 2016-07-28 17:01:53 -0400 | [diff] [blame] | 60 | |
| 61 | reactivate_fabric_apps: |
Andy Bavier | abdbf30 | 2016-07-28 20:25:53 -0400 | [diff] [blame] | 62 | http -a karaf:karaf POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.vrouter/active |
| 63 | http -a karaf:karaf POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active |
Andy Bavier | 712e134 | 2016-07-28 17:01:53 -0400 | [diff] [blame] | 64 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 65 | fabric: fabric.yaml |
Andy Bavier | ac28149 | 2016-07-19 14:32:29 -0400 | [diff] [blame] | 66 | cp ../../xos_services/fabric/config/network-cfg-quickstart.json . |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 67 | $(RUN_TOSCA) fabric.yaml |
| 68 | |
| 69 | cord: vsg_custom_images |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 70 | $(RUN_TOSCA) $(COMMON_DIR)/tosca/mgmt-net.yaml |
Andy Bavier | acfadd4 | 2016-06-30 16:46:32 -0400 | [diff] [blame] | 71 | $(RUN_TOSCA) cord-services.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 72 | $(RUN_TOSCA) $(COMMON_DIR)/tosca/cord-volt-devices.yaml |
| 73 | |
| 74 | vsg_custom_images: images/vsg-1.1.img |
| 75 | bash -c "source ./admin-openrc.sh; glance image-show vsg-1.1 || glance image-create --name vsg-1.1 --disk-format qcow2 --file ./images/vsg-1.1.img --container-format bare" |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 76 | |
Andy Bavier | acfadd4 | 2016-06-30 16:46:32 -0400 | [diff] [blame] | 77 | cord-subscriber: |
| 78 | $(RUN_TOSCA) cord-test-subscriber.yaml |
| 79 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 80 | update_nodes: nodes.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 81 | $(RUN_TOSCA) nodes.yaml |
| 82 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 83 | new-nodes: clean_nodes update_nodes vtn |
Scott Baker | 4b37d1a | 2016-07-01 13:41:52 -0700 | [diff] [blame] | 84 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 85 | exampleservice: onboard-exampleservice |
| 86 | $(RUN_TOSCA) pod-exampleservice.yaml |
| 87 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 88 | onboard-exampleservice: $(SERVICE_DIR)/exampleservice |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 89 | sudo cp id_rsa key_import/exampleservice_rsa |
| 90 | sudo cp id_rsa.pub key_import/exampleservice_rsa.pub |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 91 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Scott Baker | df81f59 | 2016-07-14 12:01:21 -0700 | [diff] [blame] | 92 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/exampleservice/xos/exampleservice-onboard.yaml |
Scott Baker | 78ea35a | 2016-07-25 08:55:16 -0700 | [diff] [blame] | 93 | $(RUN_TOSCA_BOOTSTRAP) exampleservice-synchronizer.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 94 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
| 95 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/exampleservice |
| 96 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 97 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 98 | |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 99 | cord-monitoringservice: ceilometer_custom_images onboard-monitoringservice |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 100 | $(RUN_TOSCA) monitoringservice.yaml |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 101 | $(RUN_TOSCA) monitoringtenant.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 102 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 103 | onboard-monitoringservice: $(SERVICE_DIR)/monitoring |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 104 | sudo cp id_rsa key_import/monitoringservice_rsa |
| 105 | sudo cp id_rsa.pub key_import/monitoringservice_rsa.pub |
| 106 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/monitoring/xos/monitoring-onboard.yaml |
Srikanth Vavilapalli | 4cf2fed | 2016-07-01 21:27:20 +0000 | [diff] [blame] | 107 | $(RUN_TOSCA_BOOTSTRAP) monitoring_synchronizer.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 108 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/monitoring |
| 109 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 110 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 111 | |
| 112 | vtn-external.yaml: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 113 | export SETUPDIR=$(CONFIG_DIR); bash ./make-vtn-external-yaml.sh |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 114 | |
| 115 | fabric.yaml: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 116 | export SETUPDIR=$(CONFIG_DIR); bash ./make-fabric-yaml.sh |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 117 | |
| 118 | virtualbng_json: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 119 | export SETUPDIR=$(CONFIG_DIR); bash ./make-virtualbng-json.sh |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 120 | |