mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Replace bogus (but routeable) ip addresses with RFC 5737 example addresses (#40554)
* Remove 1.1.1.1 from *_config tests * remove from *_smoke and *_system * Miscellaneous other tests * Remove from module documentation as well * Remove from unit tests as well * Remove accidental duplication from rebase
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
junos_config:
|
||||
lines:
|
||||
- 'set system host-name {{ inventory_hostname_short }}'
|
||||
- 'set interfaces lo0 unit 0 family inet address 1.1.1.1/32'
|
||||
- 'set interfaces lo0 unit 0 family inet address 192.0.2.1/32'
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
# Ensure host-name *hasn't* been updated
|
||||
- "'host-name;' not in result.diff.prepared"
|
||||
# Ensure interface has *been* updated
|
||||
- "'address 1.1.1.1/32' in result.diff.prepared"
|
||||
- "'address 192.0.2.1/32' in result.diff.prepared"
|
||||
|
||||
- name: check multiple commands idempotent
|
||||
junos_config:
|
||||
lines:
|
||||
- 'set system host-name {{ inventory_hostname_short }}'
|
||||
- 'set interfaces lo0 unit 0 family inet address 1.1.1.1/32'
|
||||
- 'set interfaces lo0 unit 0 family inet address 192.0.2.1/32'
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'address 1.1.1.1/32' in result.diff.prepared"
|
||||
- "'address 192.0.2.1/32' in result.diff.prepared"
|
||||
|
||||
- name: check device with config
|
||||
junos_config:
|
||||
@@ -79,7 +79,7 @@
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'address 1.1.1.1/32' in result.diff.prepared"
|
||||
- "'address 192.0.2.1/32' in result.diff.prepared"
|
||||
|
||||
- name: check device with config
|
||||
junos_config:
|
||||
|
||||
Reference in New Issue
Block a user