Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions ansible/roles/test/tasks/interface.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: Get interface facts
interface_facts:

- name: Verify interfaces are up correctly
assert: { that: "'{{ ansible_interface_facts[item]['active'] }}' == 'True'" }
with_items: minigraph_interfaces | map(attribute='alias') | list

10 changes: 10 additions & 0 deletions ansible/roles/test/tasks/sonic.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
- name: Gathering minigraph facts about the device
minigraph_facts: host={{ inventory_hostname }}
connection: local
become: no
tags: always

- name: Verify interfaces are up
include: interface.yml
tags: always

- name: Neighbor mac change test
include: neighbour-mac.yml
tags: neighbour
Expand Down