Skip to content

Commit

Permalink
[2.6] Update ios tests (ansible#42509)
Browse files Browse the repository at this point in the history
* 192.168.0.1/24 conflicts with management IP

* Images don't have the hostnames we expect
(cherry picked from commit 399d13d)

Co-authored-by: Nathaniel Case <this.is@nathanielca.se>
  • Loading branch information
Qalthos committed Jul 9, 2018
1 parent 1a6fe6c commit e098b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions test/integration/targets/ios_config/tests/cli/diff.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
- debug: msg="START cli/diff.yaml on connection={{ ansible_connection }}"

- name: Ensure hostname is preset
ios_system:
hostname: "{{ shorter_hostname }}"

- name: ios_config diff against retrieved config
ios_config:
diff_against: intended
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e098b12

Please sign in to comment.