Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fast reboot]when call testcase by name, fetch all vms management info from testbe… #457

Merged
merged 1 commit into from
Feb 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ansible/roles/test/tasks/fast-reboot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# example:
# ansible-playbook sonic-test.yml -i str --limit device_1 --become --vault-password-file ~/password --tags fast_reboot -e "ptf_host=10.0.0.21" -e "vm_hosts=['10.0.0.200','10.0.0.201','10.0.0.202','10.0.0.203']"

- block:
- name: figure out fast reboot vm hosts
testbed_vm_info: base_vm={{ vm }} topo={{ testbed_type }}
connection: local

- set_fact:
vm_hosts: "{{ neighbor_eosvm_mgmt.values() }}"
when: testbed_type is defined and vm is defined


- block:
- fail: msg="Please set ptf_host variable"
when: ptf_host is not defined
Expand Down