Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Andy Bavier | af2b8a6 | 2017-08-14 12:33:39 -0700 | [diff] [blame] | 15 | - name: Install httpie |
| 16 | pip: |
| 17 | name: httpie |
| 18 | state: present |
| 19 | become: yes |
Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 20 | |
Andy Bavier | af2b8a6 | 2017-08-14 12:33:39 -0700 | [diff] [blame] | 21 | # This step could be implemented more cleanly (i.e., broken into multiple |
| 22 | # tasks, use "uri" module). It was done this way to mirror what is |
| 23 | # in the documentation (quickstart_physical.md). |
Andy Bavier | 2968291 | 2017-01-24 10:28:58 -0500 | [diff] [blame] | 24 | - name: Rebuild and reinstall ONOS fabric configuration |
Andy Bavier | af2b8a6 | 2017-08-14 12:33:39 -0700 | [diff] [blame] | 25 | shell: "{{ item }}" |
| 26 | args: |
| 27 | chdir: /opt/cord_profile |
Andy Bavier | 2968291 | 2017-01-24 10:28:58 -0500 | [diff] [blame] | 28 | with_items: |
Andy Bavier | af2b8a6 | 2017-08-14 12:33:39 -0700 | [diff] [blame] | 29 | - "cord generate > fabric-network-cfg.json" |
| 30 | - "http -a onos:rocks DELETE http://onos-fabric:8181/onos/v1/network/configuration/" |
| 31 | - "docker-compose -p {{ cord_profile }} exec -T xos_ui python /opt/xos/tosca/run.py xosadmin@opencord.org /opt/cord_profile/fabric-service.yaml" |
| 32 | - "http -a onos:rocks POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.vrouter/active" |
| 33 | - "http -a onos:rocks POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active" |
| 34 | tags: |
| 35 | - skip_ansible_lint # running a sub job |