Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
rdudyala | 996d70b | 2016-10-13 17:40:55 +0000 | [diff] [blame] | 17 | --- |
| 18 | - hosts: '{{ instance_name }}' |
| 19 | gather_facts: False |
| 20 | connection: ssh |
| 21 | user: ubuntu |
| 22 | sudo: yes |
| 23 | tasks: |
| 24 | - name : stopping onos service on {{ instance_name }} |
| 25 | uri: |
| 26 | url: http://{{ instance_name }}:5004/monitoring/agent/onos/stop |
| 27 | method: POST |
| 28 | body: '"target":"udp://9.9.9.9:4455", "meta_data": { "resources": ["onos://10.11.10.60:8181?auth=basic&user=onos&password=rocks&scheme=http","onos://10.11.10.61:8181?auth=basic&user=onos&password=rocks&scheme=http"]} ' |
| 29 | force_basic_auth: yes |
| 30 | status_code: 200 |
| 31 | body_format: json |
| 32 | - name: stopping openstack service on {{ instance_name }} |
| 33 | uri: |
| 34 | url: http://{{ instance_name }}:5004/monitoring/agent/openstack/stop |
| 35 | method: POST |
| 36 | body: '"target":"udp://9.9.9.9:4455"' |
| 37 | force_basic_auth: yes |
| 38 | status_code: 200 |
| 39 | body_format: json |