forked from gtest-org/ansible
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To fix IOSXR L3 Interfaces idempotency failures (ansible#61860)
* fix zuul idemptency failures * adding eol Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
- Loading branch information
1 parent
375eb97
commit 1425d23
Showing
2 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
test/integration/targets/iosxr_l3_interfaces/tests/cli/rtt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_l3_interfaces round trip integration tests on connection={{ ansible_connection }}" | ||
|
||
- include_tasks: _remove_config.yaml | ||
|
||
- block: | ||
- name: Round Trip test by applying the provided configuration (base config) | ||
iosxr_l3_interfaces: | ||
config: | ||
- name: GigabitEthernet0/0/0/0 | ||
ipv4: | ||
- address: 198.51.100.1/24 | ||
- name: GigabitEthernet0/0/0/1 | ||
ipv6: | ||
- address: 2001:db8:0:3::/64 | ||
ipv4: | ||
- address: 192.0.2.1/24 | ||
- secondary: True | ||
address: 192.0.2.2/24 | ||
state: merged | ||
register: base_config | ||
|
||
- name: Gather interfaces facts | ||
iosxr_facts: | ||
gather_subset: | ||
- default | ||
gather_network_resources: | ||
- l3_interfaces | ||
register: l3facts_config | ||
|
||
- name: Apply config from l3_interfaces facts generated (IDEMPOTENT) | ||
iosxr_l3_interfaces: | ||
config: "{{ l3facts_config['ansible_facts']['ansible_network_resources']['l3_interfaces'] }}" | ||
state: merged | ||
|
||
always: | ||
- include_tasks: _remove_config.yaml |