mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix lookup source tests on ios_system (#32254)
In IOS-XE, you need to pass an interface to lookup-source, otherwise it fails with bad syntax.
This commit is contained in:
parent
27b2c3bd25
commit
4b35793f62
1 changed files with 5 additions and 5 deletions
|
@ -4,25 +4,25 @@
|
|||
- name: setup
|
||||
ios_config:
|
||||
lines:
|
||||
- no ip domain lookup source-interface
|
||||
- no ip domain lookup source-interface Loopback888
|
||||
- vrf definition ansible
|
||||
match: none
|
||||
authorize: yes
|
||||
|
||||
- name: configure lookup_source
|
||||
ios_system:
|
||||
lookup_source: Loopback10
|
||||
lookup_source: Loopback888
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- "'ip domain lookup source-interface Loopback10' in result.commands"
|
||||
- "'ip domain lookup source-interface Loopback888' in result.commands"
|
||||
|
||||
- name: verify lookup_source
|
||||
ios_system:
|
||||
lookup_source: Loopback10
|
||||
lookup_source: Loopback888
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
|
@ -84,7 +84,7 @@
|
|||
- name: teardown
|
||||
ios_config:
|
||||
lines:
|
||||
- no ip domain lookup source-interface
|
||||
- no ip domain lookup source-interface Loopback888
|
||||
- no vrf definition ansible
|
||||
match: none
|
||||
authorize: yes
|
||||
|
|
Loading…
Reference in a new issue