blob: d46ebc6ac0f2b70c1fdd153f2f70c4392c1f31d4 [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install httpie
pip:
name: httpie
state: present
become: yes
# This step could be implemented more cleanly (i.e., broken into multiple
# tasks, use "uri" module). It was done this way to mirror what is
# in the documentation (quickstart_physical.md).
- name: Rebuild and reinstall ONOS fabric configuration
shell: "{{ item }}"
args:
chdir: /opt/cord_profile
with_items:
- "cord generate > fabric-network-cfg.json"
- "http -a onos:rocks DELETE http://onos-fabric:8181/onos/v1/network/configuration/"
- "docker-compose -p {{ cord_profile }} exec -T xos_ui python /opt/xos/tosca/run.py xosadmin@opencord.org /opt/cord_profile/fabric-service.yaml"
- "http -a onos:rocks POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.vrouter/active"
- "http -a onos:rocks POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active"
tags:
- skip_ansible_lint # running a sub job