blob: ff556f9c059107b543d229e3bfd2e83b5df11f51 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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
Zack Williams003e1532017-02-15 18:05:56 -070017---
18# vtn-refresh/defaults/main.yml
19
20- name: Refresh VTN state
21 shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord {{ item }}"
22 ignore_errors: yes
23 with_items:
24 - "cordvtn-sync-neutron-states https://keystone.cord.lab:5000/v2.0 admin {{ keystone_admin_pass }}"
25 - "cordvtn-sync-xos-states http://xos:{{ xos_ui_port }} {{ xos_admin_user }} {{ xos_admin_pass }}"
26 - "cordvtn-purge-rules"
27 tags:
28 - skip_ansible_lint # running commands on ONOS
29
30- name: Reload compute nodes in VTN
31 shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord cordvtn-node-init {{ hostvars[item]['ansible_hostname'] }}"
32 ignore_errors: yes
33 with_items: "{{ groups['compute'] }}"
34 tags:
35 - skip_ansible_lint # running commands on ONOS
36