blob: d46ebc6ac0f2b70c1fdd153f2f70c4392c1f31d4 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001# 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 Bavieraf2b8a62017-08-14 12:33:39 -070015- name: Install httpie
16 pip:
17 name: httpie
18 state: present
19 become: yes
Matteo Scandolo3896c472017-08-01 13:31:42 -070020
Andy Bavieraf2b8a62017-08-14 12:33:39 -070021# 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 Bavier29682912017-01-24 10:28:58 -050024- name: Rebuild and reinstall ONOS fabric configuration
Andy Bavieraf2b8a62017-08-14 12:33:39 -070025 shell: "{{ item }}"
26 args:
27 chdir: /opt/cord_profile
Andy Bavier29682912017-01-24 10:28:58 -050028 with_items:
Andy Bavieraf2b8a62017-08-14 12:33:39 -070029 - "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