blob: 7b5273f5e79303c9b1383fdf5d6a4f0eed1fd904 [file] [log] [blame]
Zack Williams003e1532017-02-15 18:05:56 -07001---
2# vtn-refresh/defaults/main.yml
3
4- name: Refresh VTN state
5 shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord {{ item }}"
6 ignore_errors: yes
7 with_items:
8 - "cordvtn-sync-neutron-states https://keystone.cord.lab:5000/v2.0 admin {{ keystone_admin_pass }}"
9 - "cordvtn-sync-xos-states http://xos:{{ xos_ui_port }} {{ xos_admin_user }} {{ xos_admin_pass }}"
10 - "cordvtn-purge-rules"
11 tags:
12 - skip_ansible_lint # running commands on ONOS
13
14- name: Reload compute nodes in VTN
15 shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord cordvtn-node-init {{ hostvars[item]['ansible_hostname'] }}"
16 ignore_errors: yes
17 with_items: "{{ groups['compute'] }}"
18 tags:
19 - skip_ansible_lint # running commands on ONOS
20