mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Update ios tests (#42509)
* 192.168.0.1/24 conflicts with management IP * Images don't have the hostnames we expect
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
- name: Configure interface ipv4 address
|
||||
ios_l3_interface:
|
||||
name: "{{ test_interface }}"
|
||||
ipv4: 192.168.0.1/24
|
||||
ipv4: 192.168.20.1/24
|
||||
state: present
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
@@ -39,12 +39,12 @@
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"interface {{ test_interface }}" in result.commands'
|
||||
- '"ip address 192.168.0.1 255.255.255.0" in result.commands'
|
||||
- '"ip address 192.168.20.1 255.255.255.0" in result.commands'
|
||||
|
||||
- name: test invalid subnet
|
||||
ios_l3_interface:
|
||||
name: "{{ test_interface }}"
|
||||
ipv4: 192.168.0.1/45
|
||||
ipv4: 192.168.20.1/45
|
||||
state: present
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
Reference in New Issue
Block a user