diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-05-30 19:03:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-30 19:03:20 +0200 |
commit | 82dfa542c249b46bf388c2d9424fcbcb299be0e1 (patch) | |
tree | 948a4b5dc1115fe2060ea32b394ca314503c7817 /test/integration | |
parent | Use get_option instead of _options.get API (diff) | |
download | ansible-82dfa542c249b46bf388c2d9424fcbcb299be0e1.tar.xz ansible-82dfa542c249b46bf388c2d9424fcbcb299be0e1.zip |
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
Diffstat (limited to 'test/integration')
69 files changed, 852 insertions, 852 deletions
diff --git a/test/integration/targets/asa_config/tests/cli/more_system.yaml b/test/integration/targets/asa_config/tests/cli/more_system.yaml index a84fde29e3..62a7b82a25 100644 --- a/test/integration/targets/asa_config/tests/cli/more_system.yaml +++ b/test/integration/targets/asa_config/tests/cli/more_system.yaml @@ -4,21 +4,21 @@ - name: setup asa_config: lines: - - "clear configure tunnel-group 1.1.1.1" + - "clear configure tunnel-group 192.0.2.1" provider: "{{ cli }}" ignore_errors: yes - name: Prepare tunnel-group asa_config: - before: tunnel-group 1.1.1.1 type ipsec-l2l + before: tunnel-group 192.0.2.1 type ipsec-l2l lines: - - "tunnel-group 1.1.1.1 ipsec-attributes" + - "tunnel-group 192.0.2.1 ipsec-attributes" provider: "{{ cli }}" - name: Setup tunnel-group asa_config: - parents: tunnel-group 1.1.1.1 ipsec-attributes + parents: tunnel-group 192.0.2.1 ipsec-attributes lines: - "ikev1 pre-shared-key abc123" passwords: yes @@ -26,7 +26,7 @@ - name: Test idempotency asa_config: - parents: tunnel-group 1.1.1.1 ipsec-attributes + parents: tunnel-group 192.0.2.1 ipsec-attributes lines: - "ikev1 pre-shared-key abc123" passwords: yes @@ -40,7 +40,7 @@ - name: teardown asa_config: lines: - - "clear configure tunnel-group 1.1.1.1" + - "clear configure tunnel-group 192.0.2.1" provider: "{{ cli }}" diff --git a/test/integration/targets/dellos10_config/tests/cli/sublevel_block.yaml b/test/integration/targets/dellos10_config/tests/cli/sublevel_block.yaml index 9df119a439..06c46b876b 100644 --- a/test/integration/targets/dellos10_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/dellos10_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -16,10 +16,10 @@ - name: configure sub level command using block resplace dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte parents: ['ip access-list test'] replace: block after: ['exit'] @@ -30,18 +30,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates" - - "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - - "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any count byte' in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any count byte' in result.updates" + - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates" + - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any count byte' in result.updates" - name: check sub level command using block replace dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte parents: ['ip access-list test'] replace: block after: ['exit'] diff --git a/test/integration/targets/dellos10_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/dellos10_config/tests/cli/sublevel_exact.yaml index ad68ed1d1a..abacafd501 100644 --- a/test/integration/targets/dellos10_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/dellos10_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte - - seq 25 permit ip host 5.5.5.5 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte + - seq 25 permit ip host 192.0.2.5 any count byte parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using exact match dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte parents: ['ip access-list test'] after: ['exit'] match: exact @@ -32,20 +32,20 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates" - - "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - - "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any count byte' in result.updates" - - "'seq 25 permit ip host 5.5.5.5 any count byte' not in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any count byte' in result.updates" + - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates" + - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any count byte' in result.updates" + - "'seq 25 permit ip host 192.0.2.5 any count byte' not in result.updates" - name: check sub level command using exact match dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte - - seq 25 permit ip host 5.5.5.5 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte + - seq 25 permit ip host 192.0.2.5 any count byte parents: ['ip access-list test'] after: ['exit'] match: exact diff --git a/test/integration/targets/dellos10_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/dellos10_config/tests/cli/sublevel_strict.yaml index 5ce7d7ccba..9b23c00ca8 100644 --- a/test/integration/targets/dellos10_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/dellos10_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte - - seq 25 permit ip host 5.5.5.5 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte + - seq 25 permit ip host 192.0.2.5 any count byte parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using strict match dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 20 permit ip host 4.4.4.4 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 20 permit ip host 192.0.2.4 any count byte parents: ['ip access-list test'] match: strict provider: "{{ cli }}" @@ -34,9 +34,9 @@ - name: check sub level command using strict match dellos10_config: lines: - - seq 5 permit ip host 1.1.1.1 any count byte - - seq 15 permit ip host 3.3.3.3 any count byte - - seq 10 permit ip host 2.2.2.2 any count byte + - seq 5 permit ip host 192.0.2.1 any count byte + - seq 15 permit ip host 192.0.2.3 any count byte + - seq 10 permit ip host 192.0.2.2 any count byte parents: ['ip access-list test'] after: ['exit'] match: strict @@ -47,11 +47,11 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any count byte' not in result.updates" - - "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - - "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any count byte' not in result.updates" - - "'seq 25 permit ip host 5.5.5.5 any count byte' not in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any count byte' not in result.updates" + - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates" + - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any count byte' not in result.updates" + - "'seq 25 permit ip host 192.0.2.5 any count byte' not in result.updates" - name: teardown dellos10_config: diff --git a/test/integration/targets/dellos6_config/tests/cli/sublevel_block.yaml b/test/integration/targets/dellos6_config/tests/cli/sublevel_block.yaml index 2b5a495fcf..9b4f1d8907 100644 --- a/test/integration/targets/dellos6_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/dellos6_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup dellos6_config: lines: - - permit ip 1.1.1.1 0.0.0.0 any log - - permit ip 2.2.2.2 0.0.0.0 any log - - permit ip 3.3.3.3 0.0.0.0 any log + - permit ip 192.0.2.1 0.0.0.0 any log + - permit ip 192.0.2.2 0.0.0.0 any log + - permit ip 192.0.2.3 0.0.0.0 any log parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -16,10 +16,10 @@ - name: configure sub level command using block resplace dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 2.2.2.2 0.0.0.0 any log - - 1020 permit ip 3.3.3.3 0.0.0.0 any log - - 1030 permit ip 4.4.4.4 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.2 0.0.0.0 any log + - 1020 permit ip 192.0.2.3 0.0.0.0 any log + - 1030 permit ip 192.0.2.4 0.0.0.0 any log parents: ['ip access-list test'] replace: block after: ['exit'] @@ -30,18 +30,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'1000 permit ip 1.1.1.1 0.0.0.0 any log' in result.updates" - - "'1010 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - - "'1020 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - - "'1030 permit ip 4.4.4.4 0.0.0.0 any log' in result.updates" + - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' in result.updates" + - "'1010 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates" + - "'1020 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates" + - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' in result.updates" - name: check sub level command using block replace dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 2.2.2.2 0.0.0.0 any log - - 1020 permit ip 3.3.3.3 0.0.0.0 any log - - 1030 permit ip 4.4.4.4 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.2 0.0.0.0 any log + - 1020 permit ip 192.0.2.3 0.0.0.0 any log + - 1030 permit ip 192.0.2.4 0.0.0.0 any log parents: ['ip access-list test'] replace: block after: ['exit'] diff --git a/test/integration/targets/dellos6_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/dellos6_config/tests/cli/sublevel_exact.yaml index 72f7334e43..9a7bfe6971 100644 --- a/test/integration/targets/dellos6_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/dellos6_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup dellos6_config: lines: - - permit ip 1.1.1.1 0.0.0.0 any log - - permit ip 2.2.2.2 0.0.0.0 any log - - permit ip 3.3.3.3 0.0.0.0 any log - - permit ip 4.4.4.4 0.0.0.0 any log - - permit ip 5.5.5.5 0.0.0.0 any log + - permit ip 192.0.2.1 0.0.0.0 any log + - permit ip 192.0.2.2 0.0.0.0 any log + - permit ip 192.0.2.3 0.0.0.0 any log + - permit ip 192.0.2.4 0.0.0.0 any log + - permit ip 192.0.2.5 0.0.0.0 any log parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using exact match dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 2.2.2.2 0.0.0.0 any log - - 1020 permit ip 3.3.3.3 0.0.0.0 any log - - 1030 permit ip 4.4.4.4 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.2 0.0.0.0 any log + - 1020 permit ip 192.0.2.3 0.0.0.0 any log + - 1030 permit ip 192.0.2.4 0.0.0.0 any log parents: ['ip access-list test'] after: ['exit'] match: exact @@ -32,20 +32,20 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'1000 permit ip 1.1.1.1 0.0.0.0 any log' in result.updates" - - "'1010 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - - "'1020 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - - "'1030 permit ip 4.4.4.4 0.0.0.0 any log' in result.updates" - - "'1040 permit ip 5.5.5.5 0.0.0.0 any log' not in result.updates" + - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' in result.updates" + - "'1010 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates" + - "'1020 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates" + - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' in result.updates" + - "'1040 permit ip 192.0.2.5 0.0.0.0 any log' not in result.updates" - name: check sub level command using exact match dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 2.2.2.2 0.0.0.0 any log - - 1020 permit ip 3.3.3.3 0.0.0.0 any log - - 1030 permit ip 4.4.4.4 0.0.0.0 any log - - 1040 permit ip 5.5.5.5 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.2 0.0.0.0 any log + - 1020 permit ip 192.0.2.3 0.0.0.0 any log + - 1030 permit ip 192.0.2.4 0.0.0.0 any log + - 1040 permit ip 192.0.2.5 0.0.0.0 any log parents: ['ip access-list test'] after: ['exit'] match: exact diff --git a/test/integration/targets/dellos6_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/dellos6_config/tests/cli/sublevel_strict.yaml index cba9943ec5..b858a6085a 100644 --- a/test/integration/targets/dellos6_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/dellos6_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup dellos6_config: lines: - - permit ip 1.1.1.1 0.0.0.0 any log - - permit ip 2.2.2.2 0.0.0.0 any log - - permit ip 3.3.3.3 0.0.0.0 any log - - permit ip 4.4.4.4 0.0.0.0 any log - - permit ip 5.5.5.5 0.0.0.0 any log + - permit ip 192.0.2.1 0.0.0.0 any log + - permit ip 192.0.2.2 0.0.0.0 any log + - permit ip 192.0.2.3 0.0.0.0 any log + - permit ip 192.0.2.4 0.0.0.0 any log + - permit ip 192.0.2.5 0.0.0.0 any log parents: ['ip access-list test'] before: ['no ip access-list test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using strict match dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 2.2.2.2 0.0.0.0 any log - - 1020 permit ip 3.3.3.3 0.0.0.0 any log - - 1030 permit ip 4.4.4.4 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.2 0.0.0.0 any log + - 1020 permit ip 192.0.2.3 0.0.0.0 any log + - 1030 permit ip 192.0.2.4 0.0.0.0 any log parents: ['ip access-list test'] match: strict provider: "{{ cli }}" @@ -34,9 +34,9 @@ - name: check sub level command using strict match dellos6_config: lines: - - 1000 permit ip 1.1.1.1 0.0.0.0 any log - - 1010 permit ip 3.3.3.3 0.0.0.0 any log - - 1020 permit ip 2.2.2.2 0.0.0.0 any log + - 1000 permit ip 192.0.2.1 0.0.0.0 any log + - 1010 permit ip 192.0.2.3 0.0.0.0 any log + - 1020 permit ip 192.0.2.2 0.0.0.0 any log parents: ['ip access-list test'] after: ['exit'] match: strict @@ -47,11 +47,11 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'1000 permit ip 1.1.1.1 0.0.0.0 any log' not in result.updates" - - "'1020 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - - "'1010 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - - "'1030 permit ip 4.4.4.4 0.0.0.0 any log' not in result.updates" - - "'1040 permit ip 5.5.5.5 0.0.0.0 any log' not in result.updates" + - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' not in result.updates" + - "'1020 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates" + - "'1010 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates" + - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' not in result.updates" + - "'1040 permit ip 192.0.2.5 0.0.0.0 any log' not in result.updates" - name: teardown dellos6_config: diff --git a/test/integration/targets/dellos9_config/tests/cli/sublevel_block.yaml b/test/integration/targets/dellos9_config/tests/cli/sublevel_block.yaml index 267ec5bd35..f7b2983712 100644 --- a/test/integration/targets/dellos9_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/dellos9_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] before: ['no ip access-list extended test'] after: ['exit'] @@ -16,10 +16,10 @@ - name: configure sub level command using block replace dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] replace: block after: ['exit'] @@ -30,18 +30,18 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' in result.updates" - name: check sub level command using block replace dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] replace: block after: ['exit'] diff --git a/test/integration/targets/dellos9_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/dellos9_config/tests/cli/sublevel_exact.yaml index d8797253c7..9c80d3f499 100644 --- a/test/integration/targets/dellos9_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/dellos9_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - - seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 + - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] before: ['no ip access-list extended test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using exact match dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] after: ['exit'] match: exact @@ -32,20 +32,20 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5' not in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5' not in result.updates" - name: check sub level command using exact match dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - - seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 + - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] after: ['exit'] match: exact diff --git a/test/integration/targets/dellos9_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/dellos9_config/tests/cli/sublevel_strict.yaml index 929f2b07ff..3cca5ef875 100644 --- a/test/integration/targets/dellos9_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/dellos9_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - - seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 + - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] before: ['no ip access-list extended test'] after: ['exit'] @@ -18,10 +18,10 @@ - name: configure sub level command using strict match dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] match: strict provider: "{{ cli }}" @@ -34,9 +34,9 @@ - name: check sub level command using strict match dellos9_config: lines: - - seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - - seq 10 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - - seq 15 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 + - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5 + - seq 10 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5 + - seq 15 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5 parents: ['ip access-list extended test'] after: ['exit'] match: strict @@ -47,11 +47,11 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' not in result.updates" - - "'seq 15 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 10 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - - "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' not in result.updates" - - "'seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5' not in result.updates" + - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' not in result.updates" + - "'seq 15 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 10 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates" + - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' not in result.updates" + - "'seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5' not in result.updates" - name: teardown dellos9_config: diff --git a/test/integration/targets/eos_config/tests/cli/sublevel_block.yaml b/test/integration/targets/eos_config/tests/cli/sublevel_block.yaml index a647faa6d8..9fbd1412f6 100644 --- a/test/integration/targets/eos_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/eos_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log parents: ip access-list test before: no ip access-list test after: exit @@ -16,10 +16,10 @@ - name: configure sub level command using block resplace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit @@ -30,18 +30,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" - name: check sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit diff --git a/test/integration/targets/eos_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/eos_config/tests/cli/sublevel_exact.yaml index e940d74739..5b733255da 100644 --- a/test/integration/targets/eos_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/eos_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log - - 50 permit ip host 5.5.5.5 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log + - 50 permit ip host 192.0.2.5 any log parents: ip access-list test before: no ip access-list test after: exit @@ -18,10 +18,10 @@ - name: configure sub level command using exact match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test before: no ip access-list test after: exit @@ -34,19 +34,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" - - "'50 permit ip host 5.5.5.5 any log' not in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" + - "'50 permit ip host 192.0.2.5 any log' not in result.updates" - name: check sub level command using exact match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test match: exact become: yes diff --git a/test/integration/targets/eos_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/eos_config/tests/cli/sublevel_strict.yaml index 649af8cf1a..be055f69e2 100644 --- a/test/integration/targets/eos_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/eos_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log - - 50 permit ip host 5.5.5.5 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log + - 50 permit ip host 192.0.2.5 any log parents: ip access-list test before: no ip access-list test after: exit @@ -18,10 +18,10 @@ - name: configure sub level command using strict match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 3.3.3.3 any log - - 30 permit ip host 2.2.2.2 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.3 any log + - 30 permit ip host 192.0.2.2 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test before: no ip access-list test after: exit @@ -34,19 +34,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'30 permit ip host 2.2.2.2 any log' in result.updates" - - "'20 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" - - "'50 permit ip host 5.5.5.5 any log' not in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'30 permit ip host 192.0.2.2 any log' in result.updates" + - "'20 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" + - "'50 permit ip host 192.0.2.5 any log' not in result.updates" - name: check sub level command using strict match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 3.3.3.3 any log - - 30 permit ip host 2.2.2.2 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.3 any log + - 30 permit ip host 192.0.2.2 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test match: strict become: yes diff --git a/test/integration/targets/eos_config/tests/eapi/sublevel_block.yaml b/test/integration/targets/eos_config/tests/eapi/sublevel_block.yaml index 743b32627d..e8a05dda0d 100644 --- a/test/integration/targets/eos_config/tests/eapi/sublevel_block.yaml +++ b/test/integration/targets/eos_config/tests/eapi/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log parents: ip access-list test before: no ip access-list test match: none @@ -15,10 +15,10 @@ - name: configure sub level command using block resplace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test after: end replace: block @@ -29,18 +29,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" - name: check sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block become: yes diff --git a/test/integration/targets/eos_config/tests/eapi/sublevel_exact.yaml b/test/integration/targets/eos_config/tests/eapi/sublevel_exact.yaml index 73b50b987d..048b41a32a 100644 --- a/test/integration/targets/eos_config/tests/eapi/sublevel_exact.yaml +++ b/test/integration/targets/eos_config/tests/eapi/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log - - 50 permit ip host 5.5.5.5 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log + - 50 permit ip host 192.0.2.5 any log parents: ip access-list test before: no ip access-list test after: exit @@ -18,10 +18,10 @@ - name: configure sub level command using exact match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test before: no ip access-list test after: exit @@ -33,19 +33,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" - - "'50 permit ip host 5.5.5.5 any log' not in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" + - "'50 permit ip host 192.0.2.5 any log' not in result.updates" - name: check sub level command using exact match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log before: no ip access-list test parents: ip access-list test match: exact diff --git a/test/integration/targets/eos_config/tests/eapi/sublevel_strict.yaml b/test/integration/targets/eos_config/tests/eapi/sublevel_strict.yaml index 033f175b0d..cd88c16d95 100644 --- a/test/integration/targets/eos_config/tests/eapi/sublevel_strict.yaml +++ b/test/integration/targets/eos_config/tests/eapi/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log - - 50 permit ip host 5.5.5.5 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log + - 50 permit ip host 192.0.2.5 any log parents: ip access-list test before: no ip access-list test match: none @@ -17,10 +17,10 @@ - name: configure sub level command using strict match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 3.3.3.3 any log - - 30 permit ip host 2.2.2.2 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.3 any log + - 30 permit ip host 192.0.2.2 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test before: no ip access-list test after: exit @@ -33,19 +33,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'30 permit ip host 2.2.2.2 any log' in result.updates" - - "'20 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" - - "'50 permit ip host 5.5.5.5 any log' not in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'30 permit ip host 192.0.2.2 any log' in result.updates" + - "'20 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" + - "'50 permit ip host 192.0.2.5 any log' not in result.updates" - name: check sub level command using strict match eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 3.3.3.3 any log - - 30 permit ip host 2.2.2.2 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.3 any log + - 30 permit ip host 192.0.2.2 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test match: strict become: yes diff --git a/test/integration/targets/eos_smoke/tests/cli/common_config.yaml b/test/integration/targets/eos_smoke/tests/cli/common_config.yaml index 340e46c0a6..e314b8a3d1 100644 --- a/test/integration/targets/eos_smoke/tests/cli/common_config.yaml +++ b/test/integration/targets/eos_smoke/tests/cli/common_config.yaml @@ -49,9 +49,9 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log parents: ip access-list test before: no ip access-list test after: exit @@ -62,10 +62,10 @@ - name: configure sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit @@ -78,18 +78,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" - name: check sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit diff --git a/test/integration/targets/eos_smoke/tests/eapi/common_config.yaml b/test/integration/targets/eos_smoke/tests/eapi/common_config.yaml index 2c849e1e94..d9441ee1ea 100644 --- a/test/integration/targets/eos_smoke/tests/eapi/common_config.yaml +++ b/test/integration/targets/eos_smoke/tests/eapi/common_config.yaml @@ -49,9 +49,9 @@ - name: setup eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log parents: ip access-list test before: no ip access-list test after: exit @@ -62,10 +62,10 @@ - name: configure sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit @@ -78,18 +78,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip host 1.1.1.1 any log' in result.updates" - - "'20 permit ip host 2.2.2.2 any log' in result.updates" - - "'30 permit ip host 3.3.3.3 any log' in result.updates" - - "'40 permit ip host 4.4.4.4 any log' in result.updates" + - "'10 permit ip host 192.0.2.1 any log' in result.updates" + - "'20 permit ip host 192.0.2.2 any log' in result.updates" + - "'30 permit ip host 192.0.2.3 any log' in result.updates" + - "'40 permit ip host 192.0.2.4 any log' in result.updates" - name: check sub level command using block replace eos_config: lines: - - 10 permit ip host 1.1.1.1 any log - - 20 permit ip host 2.2.2.2 any log - - 30 permit ip host 3.3.3.3 any log - - 40 permit ip host 4.4.4.4 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test replace: block after: exit diff --git a/test/integration/targets/eos_system/tests/cli/set_name_servers.yaml b/test/integration/targets/eos_system/tests/cli/set_name_servers.yaml index 80e1d8751e..849e8c1757 100644 --- a/test/integration/targets/eos_system/tests/cli/set_name_servers.yaml +++ b/test/integration/targets/eos_system/tests/cli/set_name_servers.yaml @@ -12,9 +12,9 @@ - name: configure name_servers eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 become: yes register: result @@ -22,16 +22,16 @@ that: - result.changed == true - result.commands|length == 3 - - "'ip name-server 1.1.1.1' in result.commands" - - "'ip name-server 2.2.2.2' in result.commands" - - "'ip name-server 3.3.3.3' in result.commands" + - "'ip name-server 192.0.2.1' in result.commands" + - "'ip name-server 192.0.2.2' in result.commands" + - "'ip name-server 192.0.2.3' in result.commands" - name: verify name_servers eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 become: yes register: result @@ -42,9 +42,9 @@ #- name: change to vrf # eos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # become: yes # register: result @@ -52,15 +52,15 @@ # that: # - result.changed == true # - result.commands|length == 2 -# - "'no ip name-server 2.2.2.2' in result.commands" -# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" +# - "'no ip name-server 192.0.2.2' in result.commands" +# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands" #- name: verify change to vrf # eos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # become: yes # register: result # @@ -71,8 +71,8 @@ - name: remove one eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 become: yes register: result @@ -80,7 +80,7 @@ that: - result.changed == true - result.commands|length == 1 - - "'no ip name-server 3.3.3.3' in result.commands" + - "'no ip name-server 192.0.2.3' in result.commands" - name: teardown eos_config: diff --git a/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml b/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml index 36a2c12dfc..514e1c7a34 100644 --- a/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml +++ b/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml @@ -12,9 +12,9 @@ - name: configure name_servers eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 become: yes register: result @@ -22,16 +22,16 @@ that: - result.changed == true - result.commands|length == 3 - - "'ip name-server 1.1.1.1' in result.commands" - - "'ip name-server 2.2.2.2' in result.commands" - - "'ip name-server 3.3.3.3' in result.commands" + - "'ip name-server 192.0.2.1' in result.commands" + - "'ip name-server 192.0.2.2' in result.commands" + - "'ip name-server 192.0.2.3' in result.commands" - name: verify name_servers eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 become: yes register: result @@ -42,9 +42,9 @@ #- name: change to vrf # eos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # become: yes # register: result @@ -52,15 +52,15 @@ # that: # - result.changed == true # - result.commands|length == 2 -# - "'no ip name-server 2.2.2.2' in result.commands" -# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" +# - "'no ip name-server 192.0.2.2' in result.commands" +# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands" #- name: verify change to vrf # eos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # become: yes # register: result # @@ -71,8 +71,8 @@ - name: remove one eos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 become: yes register: result @@ -80,7 +80,7 @@ that: - result.changed == true - result.commands|length == 1 - - "'no ip name-server 3.3.3.3' in result.commands" + - "'no ip name-server 192.0.2.3' in result.commands" - name: teardown eos_config: diff --git a/test/integration/targets/ios_config/tests/cli/sublevel_block.yaml b/test/integration/targets/ios_config/tests/cli/sublevel_block.yaml index 92704624cd..19e5ea942e 100644 --- a/test/integration/targets/ios_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/ios_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log parents: ['ip access-list extended test'] before: ['no ip access-list extended test'] after: ['exit'] @@ -16,10 +16,10 @@ - name: configure sub level command using block resplace ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ['ip access-list extended test'] replace: block after: ['exit'] @@ -30,18 +30,18 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'permit ip host 1.1.1.1 any log' in result.updates" - - "'permit ip host 2.2.2.2 any log' in result.updates" - - "'permit ip host 3.3.3.3 any log' in result.updates" - - "'permit ip host 4.4.4.4 any log' in result.updates" + - "'permit ip host 192.0.2.1 any log' in result.updates" + - "'permit ip host 192.0.2.2 any log' in result.updates" + - "'permit ip host 192.0.2.3 any log' in result.updates" + - "'permit ip host 192.0.2.4 any log' in result.updates" - name: check sub level command using block replace ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ['ip access-list extended test'] replace: block after: ['exit'] diff --git a/test/integration/targets/ios_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/ios_config/tests/cli/sublevel_exact.yaml index 91541280db..3d3a0ba20d 100644 --- a/test/integration/targets/ios_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/ios_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log - - permit ip host 5.5.5.5 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log + - permit ip host 192.0.2.5 any log parents: ip access-list extended test before: no ip access-list extended test after: exit @@ -18,10 +18,10 @@ - name: configure sub level command using exact match ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ip access-list extended test before: no ip access-list extended test after: exit @@ -33,19 +33,19 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'permit ip host 1.1.1.1 any log' in result.updates" - - "'permit ip host 2.2.2.2 any log' in result.updates" - - "'permit ip host 3.3.3.3 any log' in result.updates" - - "'permit ip host 4.4.4.4 any log' in result.updates" - - "'permit ip host 5.5.5.5 any log' not in result.updates" + - "'permit ip host 192.0.2.1 any log' in result.updates" + - "'permit ip host 192.0.2.2 any log' in result.updates" + - "'permit ip host 192.0.2.3 any log' in result.updates" + - "'permit ip host 192.0.2.4 any log' in result.updates" + - "'permit ip host 192.0.2.5 any log' not in result.updates" - name: check sub level command using exact match ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ip access-list extended test match: exact provider: "{{ cli }}" diff --git a/test/integration/targets/ios_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/ios_config/tests/cli/sublevel_strict.yaml index a2fb69abed..c42f9932d4 100644 --- a/test/integration/targets/ios_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/ios_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log - - permit ip host 5.5.5.5 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log + - permit ip host 192.0.2.5 any log parents: ip access-list extended test before: no ip access-list extended test match: none @@ -17,10 +17,10 @@ - name: configure sub level command using strict match ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ip access-list extended test match: strict provider: "{{ cli }}" @@ -33,9 +33,9 @@ - name: check sub level command using strict match ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 3.3.3.3 any log - - permit ip host 2.2.2.2 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.2 any log parents: ip access-list extended test after: exit match: strict @@ -46,11 +46,11 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'permit ip host 1.1.1.1 any log' not in result.updates" - - "'permit ip host 2.2.2.2 any log' in result.updates" - - "'permit ip host 3.3.3.3 any log' in result.updates" - - "'permit ip host 4.4.4.4 any log' not in result.updates" - - "'permit ip host 5.5.5.5 any log' not in result.updates" + - "'permit ip host 192.0.2.1 any log' not in result.updates" + - "'permit ip host 192.0.2.2 any log' in result.updates" + - "'permit ip host 192.0.2.3 any log' in result.updates" + - "'permit ip host 192.0.2.4 any log' not in result.updates" + - "'permit ip host 192.0.2.5 any log' not in result.updates" - name: teardown ios_config: diff --git a/test/integration/targets/ios_smoke/tests/cli/common_config.yaml b/test/integration/targets/ios_smoke/tests/cli/common_config.yaml index 67433a923c..1870ee0e29 100644 --- a/test/integration/targets/ios_smoke/tests/cli/common_config.yaml +++ b/test/integration/targets/ios_smoke/tests/cli/common_config.yaml @@ -42,9 +42,9 @@ - name: setup test NetworkConfig.difference, replace=block ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log parents: ['ip access-list extended test'] before: ['no ip access-list extended test'] after: ['exit'] @@ -54,10 +54,10 @@ - name: test NetworkConfig.difference, replace=block ios_config: lines: - - permit ip host 1.1.1.1 any log - - permit ip host 2.2.2.2 any log - - permit ip host 3.3.3.3 any log - - permit ip host 4.4.4.4 any log + - permit ip host 192.0.2.1 any log + - permit ip host 192.0.2.2 any log + - permit ip host 192.0.2.3 any log + - permit ip host 192.0.2.4 any log parents: ['ip access-list extended test'] replace: block after: ['exit'] @@ -68,10 +68,10 @@ that: - "result.changed == true" - "'ip access-list extended test' in result.updates" - - "'permit ip host 1.1.1.1 any log' in result.updates" - - "'permit ip host 2.2.2.2 any log' in result.updates" - - "'permit ip host 3.3.3.3 any log' in result.updates" - - "'permit ip host 4.4.4.4 any log' in result.updates" + - "'permit ip host 192.0.2.1 any log' in result.updates" + - "'permit ip host 192.0.2.2 any log' in result.updates" + - "'permit ip host 192.0.2.3 any log' in result.updates" + - "'permit ip host 192.0.2.4 any log' in result.updates" - name: teardown- NetworkConfig.difference, replace=block ios_config: diff --git a/test/integration/targets/ios_system/tests/cli/set_name_servers.yaml b/test/integration/targets/ios_system/tests/cli/set_name_servers.yaml index fa8ef369b9..5dcc32ed1f 100644 --- a/test/integration/targets/ios_system/tests/cli/set_name_servers.yaml +++ b/test/integration/targets/ios_system/tests/cli/set_name_servers.yaml @@ -11,9 +11,9 @@ - name: configure name_servers ios_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ cli }}" register: result @@ -21,16 +21,16 @@ that: - result.changed == true - result.commands|length == 3 - - "'ip name-server 1.1.1.1' in result.commands" - - "'ip name-server 2.2.2.2' in result.commands" - - "'ip name-server 3.3.3.3' in result.commands" + - "'ip name-server 192.0.2.1' in result.commands" + - "'ip name-server 192.0.2.2' in result.commands" + - "'ip name-server 192.0.2.3' in result.commands" - name: verify name_servers ios_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ cli }}" register: result @@ -41,9 +41,9 @@ #- name: change to vrf # ios_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # provider: "{{ cli }}" # register: result @@ -51,15 +51,15 @@ # that: # - result.changed == true # - result.commands|length == 2 -# - "'no ip name-server 2.2.2.2' in result.commands" -# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" +# - "'no ip name-server 192.0.2.2' in result.commands" +# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands" #- name: verify change to vrf # ios_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # provider: "{{ cli }}" # register: result # @@ -70,8 +70,8 @@ - name: remove one ios_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 provider: "{{ cli }}" register: result @@ -79,7 +79,7 @@ that: - result.changed == true - result.commands|length == 1 - - "'no ip name-server 3.3.3.3' in result.commands" + - "'no ip name-server 192.0.2.3' in result.commands" - name: teardown ios_config: diff --git a/test/integration/targets/iosxr_config/tests/cli/sublevel_block.yaml b/test/integration/targets/iosxr_config/tests/cli/sublevel_block.yaml index 88b5e76e99..ddd429617b 100644 --- a/test/integration/targets/iosxr_config/tests/cli/sublevel_block.yaml +++ b/test/integration/targets/iosxr_config/tests/cli/sublevel_block.yaml @@ -4,9 +4,9 @@ - name: setup iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log parents: ['ipv4 access-list test'] before: ['no ipv4 access-list test'] match: none @@ -14,10 +14,10 @@ - name: configure sub level command using block resplace iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] replace: block register: result @@ -26,18 +26,18 @@ that: - "result.changed == true" - "'ipv4 access-list test' in result.commands" - - "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - - "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - - "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - - "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" + - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands" + - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands" + - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands" + - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands" - name: check sub level command using block replace iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] replace: block register: result diff --git a/test/integration/targets/iosxr_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/iosxr_config/tests/cli/sublevel_exact.yaml index 8c031b50ec..9868b933a4 100644 --- a/test/integration/targets/iosxr_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/iosxr_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log - - 50 permit ipv4 host 5.5.5.5 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log + - 50 permit ipv4 host 192.0.2.5 any log parents: ['ipv4 access-list test'] before: ['no ipv4 access-list test'] match: none @@ -16,10 +16,10 @@ - name: configure sub level command using exact match iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] match: exact register: result @@ -28,20 +28,20 @@ that: - "result.changed == true" - "'ipv4 access-list test' in result.commands" - - "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - - "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - - "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - - "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - - "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands" + - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands" + - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands" + - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands" + - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands" + - "'50 permit ipv4 host 192.0.2.5 any log' not in result.commands" - name: check sub level command using exact match iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log - - 50 permit ipv4 host 5.5.5.5 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log + - 50 permit ipv4 host 192.0.2.5 any log parents: ['ipv4 access-list test'] match: exact register: result diff --git a/test/integration/targets/iosxr_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/iosxr_config/tests/cli/sublevel_strict.yaml index 801fb60375..2c3c865189 100644 --- a/test/integration/targets/iosxr_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/iosxr_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 3.3.3.3 any log - - 30 permit ipv4 host 2.2.2.2 any log - - 40 permit ipv4 host 4.4.4.4 any log - - 50 permit ipv4 host 5.5.5.5 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.3 any log + - 30 permit ipv4 host 192.0.2.2 any log + - 40 permit ipv4 host 192.0.2.4 any log + - 50 permit ipv4 host 192.0.2.5 any log parents: ['ipv4 access-list test'] before: ['no ipv4 access-list test'] match: none @@ -16,10 +16,10 @@ - name: configure sub level command using strict match iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] before: ['no ipv4 access-list test'] match: strict @@ -30,19 +30,19 @@ that: - "result.changed == true" - "'ipv4 access-list test' in result.commands" - - "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - - "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - - "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - - "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - - "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands" + - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands" + - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands" + - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands" + - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands" + - "'50 permit ipv4 host 192.0.2.5 any log' not in result.commands" - name: check sub level command using strict match iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] match: strict register: result diff --git a/test/integration/targets/iosxr_smoke/tests/cli/common_config.yaml b/test/integration/targets/iosxr_smoke/tests/cli/common_config.yaml index d77a4246e1..fc5ba99abb 100644 --- a/test/integration/targets/iosxr_smoke/tests/cli/common_config.yaml +++ b/test/integration/targets/iosxr_smoke/tests/cli/common_config.yaml @@ -5,9 +5,9 @@ - name: setup iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log parents: ['ipv4 access-list test'] before: ['no ipv4 access-list test'] match: none @@ -15,10 +15,10 @@ - name: configure sub level command using block resplace iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] replace: block register: result @@ -27,18 +27,18 @@ that: - "result.changed == true" - "'ipv4 access-list test' in result.commands" - - "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - - "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - - "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - - "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" + - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands" + - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands" + - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands" + - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands" - name: check sub level command using block replace iosxr_config: commands: - - 10 permit ipv4 host 1.1.1.1 any log - - 20 permit ipv4 host 2.2.2.2 any log - - 30 permit ipv4 host 3.3.3.3 any log - - 40 permit ipv4 host 4.4.4.4 any log + - 10 permit ipv4 host 192.0.2.1 any log + - 20 permit ipv4 host 192.0.2.2 any log + - 30 permit ipv4 host 192.0.2.3 any log + - 40 permit ipv4 host 192.0.2.4 any log parents: ['ipv4 access-list test'] replace: block register: result diff --git a/test/integration/targets/iosxr_system/tests/cli/set_name_servers.yaml b/test/integration/targets/iosxr_system/tests/cli/set_name_servers.yaml index 305ca4ef0a..0a9e7999bb 100644 --- a/test/integration/targets/iosxr_system/tests/cli/set_name_servers.yaml +++ b/test/integration/targets/iosxr_system/tests/cli/set_name_servers.yaml @@ -4,18 +4,18 @@ - name: setup iosxr_config: lines: - - no ip name-server 1.1.1.1 - - no ip name-server 2.2.2.2 - - no ip name-server 3.3.3.3 + - no ip name-server 192.0.2.1 + - no ip name-server 192.0.2.2 + - no ip name-server 192.0.2.3 match: none provider: "{{ cli }}" - name: configure name_servers iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ cli }}" register: result @@ -23,16 +23,16 @@ that: - result.changed == true - result.commands|length == 3 - - "'domain name-server 1.1.1.1' in result.commands" - - "'domain name-server 2.2.2.2' in result.commands" - - "'domain name-server 3.3.3.3' in result.commands" + - "'domain name-server 192.0.2.1' in result.commands" + - "'domain name-server 192.0.2.2' in result.commands" + - "'domain name-server 192.0.2.3' in result.commands" - name: verify name_servers iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ cli }}" register: result @@ -43,8 +43,8 @@ - name: remove one iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 provider: "{{ cli }}" register: result @@ -52,13 +52,13 @@ that: - result.changed == true - result.commands|length == 1 - - "'no domain name-server 3.3.3.3' in result.commands" + - "'no domain name-server 192.0.2.3' in result.commands" - name: setup iosxr_config: lines: - - no ip name-server 1.1.1.1 - - no ip name-server 2.2.2.2 + - no ip name-server 192.0.2.1 + - no ip name-server 192.0.2.2 match: none provider: "{{ cli }}" diff --git a/test/integration/targets/iosxr_system/tests/netconf/set_name_servers.yaml b/test/integration/targets/iosxr_system/tests/netconf/set_name_servers.yaml index f20ed08e52..3dd9796439 100644 --- a/test/integration/targets/iosxr_system/tests/netconf/set_name_servers.yaml +++ b/test/integration/targets/iosxr_system/tests/netconf/set_name_servers.yaml @@ -5,9 +5,9 @@ - name: setup iosxr_config: lines: - - no domain name-server 1.1.1.1 - - no domain name-server 2.2.2.2 - - no domain name-server 3.3.3.3 + - no domain name-server 192.0.2.1 + - no domain name-server 192.0.2.2 + - no domain name-server 192.0.2.3 match: none provider: "{{ cli }}" connection: network_cli @@ -16,9 +16,9 @@ iosxr_system: vrf: ansible name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ netconf }}" state: absent connection: netconf @@ -28,9 +28,9 @@ - name: configure name_servers iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ netconf }}" connection: netconf register: result @@ -39,16 +39,16 @@ that: - result.changed == true - result.xml|length == 1 - - "'1.1.1.1' in result.xml[0]" - - "'2.2.2.2' in result.xml[0]" - - "'3.3.3.3' in result.xml[0]" + - "'192.0.2.1' in result.xml[0]" + - "'192.0.2.2' in result.xml[0]" + - "'192.0.2.3' in result.xml[0]" - name: verify name_servers iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ netconf }}" connection: netconf register: result @@ -61,9 +61,9 @@ iosxr_system: &addvrf vrf: ansible name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 provider: "{{ netconf }}" connection: netconf register: result @@ -73,9 +73,9 @@ - result.changed == true - result.xml|length == 1 - "'ansible' in result.xml[0]" - - "'1.1.1.1' in result.xml[0]" - - "'2.2.2.2' in result.xml[0]" - - "'3.3.3.3' in result.xml[0]" + - "'192.0.2.1' in result.xml[0]" + - "'192.0.2.2' in result.xml[0]" + - "'192.0.2.3' in result.xml[0]" - name: verify change to vrf iosxr_system: *addvrf @@ -89,8 +89,8 @@ - name: remove one iosxr_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 provider: "{{ netconf }}" connection: netconf register: result @@ -99,14 +99,14 @@ that: - result.changed == true - result.xml|length == 1 - - "'3.3.3.3' in result.xml[0]" + - "'192.0.2.3' in result.xml[0]" - name: remove one with vrf iosxr_system: vrf: ansible name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 provider: "{{ netconf }}" connection: netconf ignore_errors: True @@ -115,8 +115,8 @@ - name: teardown iosxr_config: lines: - - no domain name-server 1.1.1.1 - - no domain name-server 2.2.2.2 + - no domain name-server 192.0.2.1 + - no domain name-server 192.0.2.2 match: none provider: "{{ cli }}" connection: network_cli @@ -125,8 +125,8 @@ iosxr_system: vrf: ansible name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 provider: "{{ netconf }}" state: absent connection: netconf diff --git a/test/integration/targets/junos_config/tests/netconf/multiple.yaml b/test/integration/targets/junos_config/tests/netconf/multiple.yaml index 385898f776..1b59e580c3 100644 --- a/test/integration/targets/junos_config/tests/netconf/multiple.yaml +++ b/test/integration/targets/junos_config/tests/netconf/multiple.yaml @@ -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 diff --git a/test/integration/targets/junos_config/tests/netconf/src_basic.yaml b/test/integration/targets/junos_config/tests/netconf/src_basic.yaml index 52aaa91211..59a80890b6 100644 --- a/test/integration/targets/junos_config/tests/netconf/src_basic.yaml +++ b/test/integration/targets/junos_config/tests/netconf/src_basic.yaml @@ -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: diff --git a/test/integration/targets/junos_l3_interface/tests/netconf/basic.yaml b/test/integration/targets/junos_l3_interface/tests/netconf/basic.yaml index 4993db0f3c..672fda6b78 100644 --- a/test/integration/targets/junos_l3_interface/tests/netconf/basic.yaml +++ b/test/integration/targets/junos_l3_interface/tests/netconf/basic.yaml @@ -4,7 +4,7 @@ - name: setup - remove interface address junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -12,7 +12,7 @@ - name: Configure interface address junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present provider: "{{ netconf }}" @@ -27,15 +27,15 @@ - assert: that: - "result.changed == true" - - "'<name>1.1.1.1/32</name>' in config.xml" + - "'<name>192.0.2.1/32</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - - result.diff.prepared is search("\+ *address 1.1.1.1/32") + - result.diff.prepared is search("\+ *address 192.0.2.1/32") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - name: Configure interface address (idempotent) junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present provider: "{{ netconf }}" @@ -48,7 +48,7 @@ - name: Deactivate interface address junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present active: False @@ -65,13 +65,13 @@ that: - "result.changed == true" - "'<address inactive=\"inactive\">' in config.xml" - - result.diff.prepared is search("! *inactive[:] address 1.1.1.1/32") + - result.diff.prepared is search("! *inactive[:] address 192.0.2.1/32") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128") - name: Activate interface address junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present active: True @@ -81,13 +81,13 @@ - assert: that: - "result.changed == true" - - result.diff.prepared is search("! *active[:] address 1.1.1.1/32") + - result.diff.prepared is search("! *active[:] address 192.0.2.1/32") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128") - name: Delete interface address junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -95,13 +95,13 @@ - assert: that: - - result.diff.prepared is search("\- *address 1.1.1.1/32") + - result.diff.prepared is search("\- *address 192.0.2.1/32") - result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128") - name: Delete interface address (idempotent) junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -114,7 +114,7 @@ - name: Aggregate setup- delete interface ge-0/0/1 junos_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -123,7 +123,7 @@ - name: Aggregate setup- delete interface ge-0/0/2 junos_l3_interface: name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 state: absent provider: "{{ netconf }}" @@ -133,10 +133,10 @@ junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 provider: "{{ netconf }}" register: result @@ -145,11 +145,11 @@ that: - 'result.changed == true' - "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared" - - result.diff.prepared is search("\+ *address 1.1.1.1/32") + - result.diff.prepared is search("\+ *address 192.0.2.1/32") - "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared" - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared" - - result.diff.prepared is search("\+ *address 2.2.2.2/32") + - result.diff.prepared is search("\+ *address 192.0.2.2/32") - "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared" - result.diff.prepared is search("\+ *address fd5d:12c9:2201:2::2/128") @@ -157,10 +157,10 @@ junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 active: True provider: "{{ netconf }}" @@ -174,10 +174,10 @@ junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 active: False provider: "{{ netconf }}" @@ -186,19 +186,19 @@ - assert: that: - 'result.changed == true' - - result.diff.prepared is search("! *inactive[:] address 1.1.1.1/32") + - result.diff.prepared is search("! *inactive[:] address 192.0.2.1/32") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128") - - result.diff.prepared is search("! *inactive[:] address 2.2.2.2/32") + - result.diff.prepared is search("! *inactive[:] address 192.0.2.2/32") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:2::2/128") - name: Activate l3 interface configuration junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 active: True provider: "{{ netconf }}" @@ -207,19 +207,19 @@ - assert: that: - 'result.changed == true' - - result.diff.prepared is search("! *active[:] address 1.1.1.1/32") + - result.diff.prepared is search("! *active[:] address 192.0.2.1/32") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128") - - result.diff.prepared is search("! *active[:] address 2.2.2.2/32") + - result.diff.prepared is search("! *active[:] address 192.0.2.2/32") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:2::2/128") - name: Delete l3 interface configuration junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 state: absent provider: "{{ netconf }}" @@ -229,11 +229,11 @@ that: - 'result.changed == true' - "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared" - - result.diff.prepared is search("\- *address 1.1.1.1/32") + - result.diff.prepared is search("\- *address 192.0.2.1/32") - "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared" - result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128") - "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared" - - result.diff.prepared is search("\- *address 2.2.2.2/32") + - result.diff.prepared is search("\- *address 192.0.2.2/32") - "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared" - result.diff.prepared is search("\- *address fd5d:12c9:2201:2::2/128") @@ -241,10 +241,10 @@ junos_l3_interface: aggregate: - name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 - name: ge-0/0/2 - ipv4: 2.2.2.2 + ipv4: 192.0.2.2 ipv6: fd5d:12c9:2201:2::2 state: absent provider: "{{ netconf }}" diff --git a/test/integration/targets/junos_l3_interface/tests/netconf/net_l3_interface.yaml b/test/integration/targets/junos_l3_interface/tests/netconf/net_l3_interface.yaml index 80c6d30f55..7897d18c96 100644 --- a/test/integration/targets/junos_l3_interface/tests/netconf/net_l3_interface.yaml +++ b/test/integration/targets/junos_l3_interface/tests/netconf/net_l3_interface.yaml @@ -7,7 +7,7 @@ - name: setup - remove interface address net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -15,7 +15,7 @@ - name: Configure interface address using platform agnostic module net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present provider: "{{ netconf }}" @@ -30,15 +30,15 @@ - assert: that: - "result.changed == true" - - "'<name>1.1.1.1/32</name>' in config.xml" + - "'<name>192.0.2.1/32</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - - result.diff.prepared is search("\+ *address 1.1.1.1/32") + - result.diff.prepared is search("\+ *address 192.0.2.1/32") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - name: teardown - remove interface address net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" diff --git a/test/integration/targets/junos_smoke/tests/netconf/module_utils_junos.yaml b/test/integration/targets/junos_smoke/tests/netconf/module_utils_junos.yaml index 9376968584..4f12ac0101 100644 --- a/test/integration/targets/junos_smoke/tests/netconf/module_utils_junos.yaml +++ b/test/integration/targets/junos_smoke/tests/netconf/module_utils_junos.yaml @@ -62,7 +62,7 @@ - name: setup - remove interface address net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" @@ -70,7 +70,7 @@ - name: Configure interface address using platform agnostic module net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: present provider: "{{ netconf }}" @@ -85,15 +85,15 @@ - assert: that: - "result.changed == true" - - "'<name>1.1.1.1/32</name>' in config.xml" + - "'<name>192.0.2.1/32</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - - result.diff.prepared is search("\+ *address 1.1.1.1/32") + - result.diff.prepared is search("\+ *address 192.0.2.1/32") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - name: teardown - remove interface address net_l3_interface: name: ge-0/0/1 - ipv4: 1.1.1.1 + ipv4: 192.0.2.1 ipv6: fd5d:12c9:2201:1::1 state: absent provider: "{{ netconf }}" diff --git a/test/integration/targets/junos_vrf/tests/netconf/basic.yaml b/test/integration/targets/junos_vrf/tests/netconf/basic.yaml index 71bc3d9807..3d7fccecf7 100644 --- a/test/integration/targets/junos_vrf/tests/netconf/basic.yaml +++ b/test/integration/targets/junos_vrf/tests/netconf/basic.yaml @@ -14,7 +14,7 @@ interfaces: - ge-0/0/6 - ge-0/0/5 - rd: 3.3.3.3:10 + rd: 192.0.2.3:10 target: target:65513:111 state: present provider: "{{ netconf }}" @@ -28,7 +28,7 @@ - result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *interface ge-0/0/5.0") - result.diff.prepared is search("\+ *interface ge-0/0/6.0") - - result.diff.prepared is search("\+ *route-distinguisher 3.3.3.3:10") + - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.3:10") - result.diff.prepared is search("\+ *vrf-target target:65513:111") - name: Configure vrf and its parameter (idempotent) @@ -38,7 +38,7 @@ interfaces: - ge-0/0/6 - ge-0/0/5 - rd: 3.3.3.3:10 + rd: 192.0.2.3:10 target: target:65513:111 state: present provider: "{{ netconf }}" @@ -55,7 +55,7 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 state: present provider: "{{ netconf }}" @@ -68,7 +68,7 @@ - result.diff.prepared is search("\+ *interface ge-0/0/2.0") - result.diff.prepared is search("\+ *interface ge-0/0/3.0") - "'[edit routing-instances test-1]' in result.diff.prepared" - - result.diff.prepared is search("\+ *route-distinguisher 1.1.1.1:10") + - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.1:10") - result.diff.prepared is search("\+ *vrf-target target:65514:113") - name: Deactivate vrf @@ -78,7 +78,7 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 state: present active: False @@ -104,7 +104,7 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 state: present active: True @@ -130,7 +130,7 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 state: absent provider: "{{ netconf }}" @@ -144,7 +144,7 @@ - result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *interface ge-0/0/2.0") - result.diff.prepared is search("\- *interface ge-0/0/3.0") - - result.diff.prepared is search("\- *route-distinguisher 1.1.1.1:10") + - result.diff.prepared is search("\- *route-distinguisher 192.0.2.1:10") - result.diff.prepared is search("\- *vrf-target target:65514:113") - name: Delete vrf (idempotent) @@ -154,7 +154,7 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 state: absent provider: "{{ netconf }}" @@ -181,14 +181,14 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 - name: test-2 description: test-vrf-2 interfaces: - ge-0/0/4 - ge-0/0/5 - rd: 2.2.2.2:10 + rd: 192.0.2.2:10 target: target:65515:114 provider: "{{ netconf }}" register: result @@ -201,14 +201,14 @@ - result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *interface ge-0/0/2.0") - result.diff.prepared is search("\+ *interface ge-0/0/3.0") - - result.diff.prepared is search("\+ *route-distinguisher 1.1.1.1:10") + - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.1:10") - result.diff.prepared is search("\+ *vrf-target target:65514:113") - result.diff.prepared is search("\+ *test-2") - result.diff.prepared is search("\+ *description test-vrf-2") - result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *interface ge-0/0/4.0") - result.diff.prepared is search("\+ *interface ge-0/0/5.0") - - result.diff.prepared is search("\+ *route-distinguisher 2.2.2.2:10") + - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.2:10") - result.diff.prepared is search("\+ *vrf-target target:65515:114") - name: Deactivate vrf configuration using aggregate @@ -219,14 +219,14 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 - name: test-2 description: test-vrf-2 interfaces: - ge-0/0/4 - ge-0/0/5 - rd: 2.2.2.2:10 + rd: 192.0.2.2:10 target: target:65515:114 active: False provider: "{{ netconf }}" @@ -254,14 +254,14 @@ interfaces: - ge-0/0/3 - ge-0/0/2 - rd: 1.1.1.1:10 + rd: 192.0.2.1:10 target: target:65514:113 - name: test-2 description: test-vrf-2 interfaces: - ge-0/0/4 - ge-0/0/5 - rd: 2.2.2.2:10 + rd: 192.0.2.2:10 target: target:65515:114 active: True provider: "{{ netconf }}" @@ -298,14 +298,14 @@ - result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *interface ge-0/0/2.0") - result.diff.prepared is search("\- *interface ge-0/0/3.0") - - result.diff.prepared is search("\- *route-distinguisher 1.1.1.1:10") + - result.diff.prepared is search("\- *route-distinguisher 192.0.2.1:10") - result.diff.prepared is search("\- *vrf-target target:65514:113") - result.diff.prepared is search("\- *test-2") - result.diff.prepared is search("\- *description test-vrf-2") - result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *interface ge-0/0/4.0") - result.diff.prepared is search("\- *interface ge-0/0/5.0") - - result.diff.prepared is search("\- *route-distinguisher 2.2.2.2:10") + - result.diff.prepared is search("\- *route-distinguisher 192.0.2.2:10") - result.diff.prepared is search("\- *vrf-target target:65515:114") - name: Delete vrf configuration using aggregate (idempotent) diff --git a/test/integration/targets/junos_vrf/tests/netconf/net_vrf.yaml b/test/integration/targets/junos_vrf/tests/netconf/net_vrf.yaml index c6f3cdb858..c8a6897f03 100644 --- a/test/integration/targets/junos_vrf/tests/netconf/net_vrf.yaml +++ b/test/integration/targets/junos_vrf/tests/netconf/net_vrf.yaml @@ -17,7 +17,7 @@ interfaces: - ge-0/0/6 - ge-0/0/5 - rd: 3.3.3.3:10 + rd: 192.0.2.3:10 target: target:65513:111 state: present provider: "{{ netconf }}" @@ -31,7 +31,7 @@ - result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *interface ge-0/0/5.0") - result.diff.prepared is search("\+ *interface ge-0/0/6.0") - - result.diff.prepared is search("\+ *route-distinguisher 3.3.3.3:10") + - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.3:10") - result.diff.prepared is search("\+ *vrf-target target:65513:111") - name: teardown - remove vrf diff --git a/test/integration/targets/nxos_acl/tests/common/sanity.yaml b/test/integration/targets/nxos_acl/tests/common/sanity.yaml index 3df42b8ae6..2900040f63 100644 --- a/test/integration/targets/nxos_acl/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_acl/tests/common/sanity.yaml @@ -19,7 +19,7 @@ seq: 10 action: permit proto: tcp - src: 1.1.1.1/24 + src: 192.0.2.1/24 src_port_op: range src_port1: 1900 src_port2: 1910 @@ -57,7 +57,7 @@ seq: 10 action: deny proto: tcp - src: 1.1.1.1/24 + src: 192.0.2.1/24 src_port_op: range src_port1: 1900 src_port2: 1910 diff --git a/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml b/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml index 1d53cfbae7..2293fd0096 100644 --- a/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml @@ -37,7 +37,7 @@ seq: 10 action: permit proto: tcp - src: 1.1.1.1/24 + src: 192.0.2.1/24 dest: any - block: diff --git a/test/integration/targets/nxos_bgp/tests/common/param.yaml b/test/integration/targets/nxos_bgp/tests/common/param.yaml index f144be23e9..a662a2e6f5 100644 --- a/test/integration/targets/nxos_bgp/tests/common/param.yaml +++ b/test/integration/targets/nxos_bgp/tests/common/param.yaml @@ -20,7 +20,7 @@ nxos_bgp: &set_multi_vrf asn: 65535 vrf: "{{ item }}" - router_id: 1.1.1.1 + router_id: 192.0.2.1 bestpath_always_compare_med: true bestpath_aspath_multipath_relax: true bestpath_compare_routerid: true diff --git a/test/integration/targets/nxos_bgp/tests/common/sanity.yaml b/test/integration/targets/nxos_bgp/tests/common/sanity.yaml index 0d53716947..a4373bda2a 100644 --- a/test/integration/targets/nxos_bgp/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_bgp/tests/common/sanity.yaml @@ -29,7 +29,7 @@ - name: "Configure BGP defaults" nxos_bgp: &configure_default asn: 65535 - router_id: 1.1.1.1 + router_id: 192.0.2.1 state: present register: result @@ -60,7 +60,7 @@ - name: "Configure BGP non defaults" nxos_bgp: &configure_non_default asn: 65535 - router_id: 1.1.1.1 + router_id: 192.0.2.1 bestpath_always_compare_med: true bestpath_aspath_multipath_relax: true bestpath_compare_routerid: true diff --git a/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml b/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml index 29d9be5c44..cf9a307536 100644 --- a/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml @@ -24,7 +24,7 @@ - name: "Setup" nxos_bgp_neighbor: &removenp asn: 65535 - neighbor: 3.3.3.3 + neighbor: 192.0.2.3 vrf: "{{ item }}" state: absent with_items: "{{ vrfs }}" @@ -33,7 +33,7 @@ - name: "Setup" nxos_bgp_neighbor: &remove asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" state: absent with_items: "{{ vrfs }}" @@ -43,7 +43,7 @@ - name: "Configure BGP neighbor1" nxos_bgp_neighbor: &configure1 asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" connected_check: true capability_negotiation: true @@ -80,7 +80,7 @@ - name: "Configure BGP neighbor2" nxos_bgp_neighbor: &configure2 asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" connected_check: False capability_negotiation: False @@ -127,7 +127,7 @@ - name: "Configure BGP neighbor3" nxos_bgp_neighbor: &configure3 asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" description: "tested by ansible" remove_private_as: "{{remove_private_asa|default(omit)}}" @@ -147,7 +147,7 @@ - name: "Configure BGP neighbor4" nxos_bgp_neighbor: &configure4 asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" description: "tested by ansible" remove_private_as: "{{remove_private_asr|default(omit)}}" @@ -174,7 +174,7 @@ - name: "Configure BGP neighbor 3des password" nxos_bgp_neighbor: &configure_3des_password asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" remote_as: 30 pwd: '386c0565965f89de' @@ -201,7 +201,7 @@ - name: "Configure BGP neighbor type 7 password" nxos_bgp_neighbor: &configure_type7_password asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" remote_as: 30 pwd: '386c0565965f89de' @@ -221,7 +221,7 @@ - name: "Remove BGP neighbor password" nxos_bgp_neighbor: &remove_password asn: 65535 - neighbor: 3.3.3.3/32 + neighbor: 192.0.2.3/32 vrf: "{{ item }}" remote_as: 30 pwd: default @@ -248,7 +248,7 @@ - name: "Configure BGP neighbor transport type passive" nxos_bgp_neighbor: &configure_transport_passive asn: 65535 - neighbor: 3.3.3.3 + neighbor: 192.0.2.3 vrf: "{{ item }}" remote_as: 30 transport_passive_only: true @@ -267,7 +267,7 @@ - name: "Configure BGP neighbor transport type default" nxos_bgp_neighbor: &configure_transport_default asn: 65535 - neighbor: 3.3.3.3 + neighbor: 192.0.2.3 vrf: "{{ item }}" remote_as: 30 transport_passive_only: false diff --git a/test/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml b/test/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml index b174ee33bd..42035b2e3c 100644 --- a/test/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml @@ -22,7 +22,7 @@ - name: "Configure BGP neighbor address-family" nxos_bgp_neighbor_af: &configure1 asn: 65535 - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast additional_paths_receive: 'enable' @@ -63,7 +63,7 @@ - name: "Configure BGP neighbor address-family def1" nxos_bgp_neighbor_af: &configure_def1 asn: 65535 - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast additional_paths_receive: 'inherit' @@ -100,7 +100,7 @@ - name: "Setup: Remove BGP config" nxos_bgp_neighbor_af: &removenaf asn: 65535 - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast state: absent @@ -117,7 +117,7 @@ - name: "Configure BGP neighbor address-family" nxos_bgp_neighbor_af: &configure2 asn: 65535 - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast allowas_in_max: '5' @@ -142,7 +142,7 @@ - name: "Configure BGP neighbor address-family def2" nxos_bgp_neighbor_af: &configure_def2 asn: 65535 - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast allowas_in_max: default @@ -180,14 +180,14 @@ nxos_bgp_neighbor: asn: 65535 vrf: 'blue' - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' remote_as: 2 - name: "Configure BGP neighbor 3" nxos_bgp_neighbor_af: &configure3 asn: 65535 vrf: 'blue' - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast additional_paths_receive: 'disable' @@ -211,7 +211,7 @@ nxos_bgp_neighbor_af: &configure_def3 asn: 65535 vrf: 'blue' - neighbor: '3.3.3.3' + neighbor: '192.0.2.3' afi: ipv4 safi: unicast additional_paths_receive: 'inherit' @@ -241,13 +241,13 @@ - name: "Configure BGP neighbor af route_reflector_client" nxos_bgp_neighbor: asn: 65535 - neighbor: '2.2.2.2' + neighbor: '192.0.2.2' remote_as: 65535 - name: "Configure BGP neighbor 4" nxos_bgp_neighbor_af: &configure4 asn: 65535 - neighbor: '2.2.2.2' + neighbor: '192.0.2.2' afi: ipv4 safi: unicast route_reflector_client: 'true' @@ -264,7 +264,7 @@ - name: "Configure BGP neighbor def4" nxos_bgp_neighbor_af: &configure_def4 asn: 65535 - neighbor: '2.2.2.2' + neighbor: '192.0.2.2' afi: ipv4 safi: unicast route_reflector_client: False diff --git a/test/integration/targets/nxos_command/tests/cli/sanity.yaml b/test/integration/targets/nxos_command/tests/cli/sanity.yaml index 31f17b4def..8bc723d687 100644 --- a/test/integration/targets/nxos_command/tests/cli/sanity.yaml +++ b/test/integration/targets/nxos_command/tests/cli/sanity.yaml @@ -26,7 +26,7 @@ - name: "Configure BGP defaults" nxos_bgp: &configure_default asn: 65535 - router_id: 1.1.1.1 + router_id: 192.0.2.1 state: present register: result diff --git a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml index f845f6de28..bff006a4c1 100644 --- a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml +++ b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml @@ -26,7 +26,7 @@ - name: "Configure BGP defaults" nxos_bgp: &configure_default asn: 65535 - router_id: 1.1.1.1 + router_id: 192.0.2.1 state: present register: result diff --git a/test/integration/targets/nxos_config/tests/cli/sublevel_exact.yaml b/test/integration/targets/nxos_config/tests/cli/sublevel_exact.yaml index b2d2190f82..820d9ab926 100644 --- a/test/integration/targets/nxos_config/tests/cli/sublevel_exact.yaml +++ b/test/integration/targets/nxos_config/tests/cli/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup nxos_config: commands: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test before: no ip access-list test match: none @@ -16,10 +16,10 @@ - name: configure sub level command using exact match nxos_config: commands: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test match: exact register: result @@ -28,20 +28,20 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'20 permit ip 2.2.2.2/32 any log' in result.updates" - - "'30 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" - - "'50 permit ip 5.5.5.5/32 any log' not in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'20 permit ip 192.0.2.2/32 any log' in result.updates" + - "'30 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" + - "'50 permit ip 192.0.2.5/32 any log' not in result.updates" - name: check sub level command using exact match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test match: exact register: result diff --git a/test/integration/targets/nxos_config/tests/cli/sublevel_strict.yaml b/test/integration/targets/nxos_config/tests/cli/sublevel_strict.yaml index 0cef240c9b..a50bd107ab 100644 --- a/test/integration/targets/nxos_config/tests/cli/sublevel_strict.yaml +++ b/test/integration/targets/nxos_config/tests/cli/sublevel_strict.yaml @@ -4,11 +4,11 @@ - name: setup nxos_config: commands: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test before: no ip access-list test match: none @@ -16,10 +16,10 @@ - name: configure sub level command using strict match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test before: no ip access-list test match: strict @@ -30,19 +30,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'20 permit ip 2.2.2.2/32 any log' in result.updates" - - "'30 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" - - "'50 permit ip 5.5.5.5/32 any log' not in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'20 permit ip 192.0.2.2/32 any log' in result.updates" + - "'30 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" + - "'50 permit ip 192.0.2.5/32 any log' not in result.updates" - name: check sub level command using strict match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test match: strict register: result diff --git a/test/integration/targets/nxos_config/tests/common/sanity.yaml b/test/integration/targets/nxos_config/tests/common/sanity.yaml index 5d69c7268b..603f31818e 100644 --- a/test/integration/targets/nxos_config/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_config/tests/common/sanity.yaml @@ -9,11 +9,11 @@ - name: "nxos_config sanity test" nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test before: no ip access-list test match: exact @@ -21,10 +21,10 @@ - name: "nxos_config sanity test - replace block" nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test before: no ip access-list test replace: block diff --git a/test/integration/targets/nxos_config/tests/common/sublevel_block.yaml b/test/integration/targets/nxos_config/tests/common/sublevel_block.yaml index 3bc3fc73ce..3e6c4c2ab2 100644 --- a/test/integration/targets/nxos_config/tests/common/sublevel_block.yaml +++ b/test/integration/targets/nxos_config/tests/common/sublevel_block.yaml @@ -10,10 +10,10 @@ - name: configure sub level command using block replace nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test replace: block register: result @@ -22,18 +22,18 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'20 permit ip 2.2.2.2/32 any log' in result.updates" - - "'30 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'20 permit ip 192.0.2.2/32 any log' in result.updates" + - "'30 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" - name: check sub level command using block replace nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test replace: block register: result diff --git a/test/integration/targets/nxos_config/tests/nxapi/sublevel_exact.yaml b/test/integration/targets/nxos_config/tests/nxapi/sublevel_exact.yaml index c927cc8147..c3e4382d99 100644 --- a/test/integration/targets/nxos_config/tests/nxapi/sublevel_exact.yaml +++ b/test/integration/targets/nxos_config/tests/nxapi/sublevel_exact.yaml @@ -4,11 +4,11 @@ - name: setup nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test match: none ignore_errors: yes @@ -16,10 +16,10 @@ - name: configure sub level command using exact match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test before: no ip access-list test match: exact @@ -30,19 +30,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'20 permit ip 2.2.2.2/32 any log' in result.updates" - - "'30 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" - - "'50 permit ip 5.5.5.5/32 any log' not in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'20 permit ip 192.0.2.2/32 any log' in result.updates" + - "'30 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" + - "'50 permit ip 192.0.2.5/32 any log' not in result.updates" - name: check sub level command using exact match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test match: exact register: result diff --git a/test/integration/targets/nxos_config/tests/nxapi/sublevel_strict.yaml b/test/integration/targets/nxos_config/tests/nxapi/sublevel_strict.yaml index 07ebc94eea..3b0bc378aa 100644 --- a/test/integration/targets/nxos_config/tests/nxapi/sublevel_strict.yaml +++ b/test/integration/targets/nxos_config/tests/nxapi/sublevel_strict.yaml @@ -4,21 +4,21 @@ - name: setup nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log - - 50 permit ip 5.5.5.5/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log + - 50 permit ip 192.0.2.5/32 any log parents: ip access-list test match: none - name: configure sub level command using strict match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 30 permit ip 2.2.2.2/32 any log - - 20 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 30 permit ip 192.0.2.2/32 any log + - 20 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test before: no ip access-list test match: strict @@ -29,19 +29,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'30 permit ip 2.2.2.2/32 any log' in result.updates" - - "'20 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" - - "'50 permit ip 5.5.5.5/32 any log' not in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'30 permit ip 192.0.2.2/32 any log' in result.updates" + - "'20 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" + - "'50 permit ip 192.0.2.5/32 any log' not in result.updates" - name: check sub level command using strict match nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 3.3.3.3/32 any log - - 30 permit ip 2.2.2.2/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.3/32 any log + - 30 permit ip 192.0.2.2/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test match: strict register: result diff --git a/test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml b/test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml index 207a84c762..554af0d927 100644 --- a/test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml @@ -31,7 +31,7 @@ route_target_export: - auto - "5000:10" - - "1.1.1.1:43" + - "192.0.2.1:43" register: result - assert: &true diff --git a/test/integration/targets/nxos_hsrp/tests/common/sanity.yaml b/test/integration/targets/nxos_hsrp/tests/common/sanity.yaml index 274b456e74..4157bda330 100644 --- a/test/integration/targets/nxos_hsrp/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_hsrp/tests/common/sanity.yaml @@ -57,7 +57,7 @@ nxos_hsrp: &conf100 group: 100 version: 2 - vip: 2.2.2.2 + vip: 192.0.2.2 priority: 25 interface: "{{ intname1 }}" preempt: enabled @@ -96,7 +96,7 @@ - name: "configure group 200" nxos_hsrp: &conf200 group: 200 - vip: 3.3.3.3 + vip: 192.0.2.3 version: 1 interface: "{{ intname2 }}" auth_type: text @@ -114,7 +114,7 @@ - name: "change group 200" nxos_hsrp: &chg200 group: 200 - vip: 3.3.3.3 + vip: 192.0.2.3 version: 2 interface: "{{ intname2 }}" auth_type: text diff --git a/test/integration/targets/nxos_igmp_interface/tests/common/sanity.yaml b/test/integration/targets/nxos_igmp_interface/tests/common/sanity.yaml index f541da0343..1cbe8711c0 100644 --- a/test/integration/targets/nxos_igmp_interface/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_igmp_interface/tests/common/sanity.yaml @@ -50,7 +50,7 @@ group_timeout: 300 # deprecated oif_prefix: 239.255.255.2 - oif_source: 1.1.1.1 + oif_source: 192.0.2.1 state: present register: result @@ -82,7 +82,7 @@ oif_ps: - {'prefix': '238.2.2.6'} - {'prefix': '238.2.2.5'} - - {'source': '1.1.1.1', 'prefix': '238.2.2.5'} + - {'source': '192.0.2.1', 'prefix': '238.2.2.5'} state: present register: result diff --git a/test/integration/targets/nxos_interface_ospf/tests/common/sanity.yaml b/test/integration/targets/nxos_interface_ospf/tests/common/sanity.yaml index d3442d7695..fbe6dc7042 100644 --- a/test/integration/targets/nxos_interface_ospf/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_interface_ospf/tests/common/sanity.yaml @@ -209,7 +209,7 @@ nxos_interface_ospf: &configurelb interface: LOOPBACK55 ospf: 1 - area: 4.4.4.4 + area: 192.0.2.4 cost: 55 hello_interval: 15 dead_interval: 75 diff --git a/test/integration/targets/nxos_ntp/tests/common/sanity.yaml b/test/integration/targets/nxos_ntp/tests/common/sanity.yaml index d220063372..d143e5d4dc 100644 --- a/test/integration/targets/nxos_ntp/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_ntp/tests/common/sanity.yaml @@ -9,7 +9,7 @@ key_id: 32 prefer: disabled vrf_name: management - source_addr: 5.5.5.5 + source_addr: 192.0.2.5 state: absent ignore_errors: yes @@ -21,7 +21,7 @@ key_id: 32 prefer: enabled vrf_name: management - source_addr: 5.5.5.5 + source_addr: 192.0.2.5 state: present register: result diff --git a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml index 8c8c6031ba..c937793b6a 100644 --- a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml @@ -13,7 +13,7 @@ - name: Configure ospf vrf nxos_ospf_vrf: &config ospf: 1 - router_id: 1.1.1.1 + router_id: 192.0.2.1 timer_throttle_spf_start: 50 timer_throttle_spf_hold: 1000 timer_throttle_spf_max: 2000 diff --git a/test/integration/targets/nxos_smoke/tests/common/common_config.yaml b/test/integration/targets/nxos_smoke/tests/common/common_config.yaml index fe58b7348e..c551f12cc3 100644 --- a/test/integration/targets/nxos_smoke/tests/common/common_config.yaml +++ b/test/integration/targets/nxos_smoke/tests/common/common_config.yaml @@ -70,10 +70,10 @@ - name: configure sub level command using block replace - exact nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test replace: block provider: "{{ connection }}" @@ -84,19 +84,19 @@ that: - "result.changed == true" - "'ip access-list test' in result.updates" - - "'10 permit ip 1.1.1.1/32 any log' in result.updates" - - "'20 permit ip 2.2.2.2/32 any log' in result.updates" - - "'30 permit ip 3.3.3.3/32 any log' in result.updates" - - "'40 permit ip 4.4.4.4/32 any log' in result.updates" + - "'10 permit ip 192.0.2.1/32 any log' in result.updates" + - "'20 permit ip 192.0.2.2/32 any log' in result.updates" + - "'30 permit ip 192.0.2.3/32 any log' in result.updates" + - "'40 permit ip 192.0.2.4/32 any log' in result.updates" # hit NetworkConfig._diff_strict - name: configure sub level command using block replace strict nxos_config: lines: - - 10 permit ip 1.1.1.1/32 any log - - 20 permit ip 2.2.2.2/32 any log - - 30 permit ip 3.3.3.3/32 any log - - 40 permit ip 4.4.4.4/32 any log + - 10 permit ip 192.0.2.1/32 any log + - 20 permit ip 192.0.2.2/32 any log + - 30 permit ip 192.0.2.3/32 any log + - 40 permit ip 192.0.2.4/32 any log parents: ip access-list test replace: block provider: "{{ connection }}" @@ -111,7 +111,7 @@ - name: create static route nxos_static_route: &configure prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 tag: 5500 @@ -126,7 +126,7 @@ - name: remove static route nxos_static_route: &remove prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 tag: 5500 @@ -141,7 +141,7 @@ - name: remove static route nxos_static_route: prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 tag: 5500 @@ -153,8 +153,8 @@ - name: remove static route aggregate nxos_static_route: aggregate: - - { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - - { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } + - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" } + - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" } state: absent provider: "{{ connection }}" ignore_errors: yes diff --git a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v1_trap.yaml b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v1_trap.yaml index 25f59a383a..67b8bac5b2 100644 --- a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v1_trap.yaml +++ b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v1_trap.yaml @@ -12,7 +12,7 @@ - name: Setup - Remove snmp_host if configured nxos_snmp_host: &remove - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING version: "{{ snmp_version }}" snmp_type: "{{ snmp_type }}" @@ -27,7 +27,7 @@ - name: Configure snmp host nxos_snmp_host: &config - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING version: "{{ snmp_version }}" snmp_type: "{{ snmp_type }}" @@ -53,7 +53,7 @@ - block: - name: Add another vrf to filter nxos_snmp_host: &config1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 vrf_filter: default udp: 222 state: present @@ -70,7 +70,7 @@ - name: remove some configuration nxos_snmp_host: &rem1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 src_intf: "{{ intname|default(omit) }}" vrf: management @@ -89,7 +89,7 @@ - block: - name: remove some more configuration nxos_snmp_host: &rem2 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 vrf_filter: default state: absent diff --git a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v2_inform.yaml b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v2_inform.yaml index 6bb4074f46..a6b9e90c66 100644 --- a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v2_inform.yaml +++ b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v2_inform.yaml @@ -12,7 +12,7 @@ - name: Setup - Remove snmp_host if configured nxos_snmp_host: &remove - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING version: "{{ snmp_version }}" snmp_type: "{{ snmp_type }}" @@ -27,7 +27,7 @@ - name: Configure snmp host nxos_snmp_host: &config - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING version: "{{ snmp_version }}" snmp_type: "{{ snmp_type }}" @@ -53,7 +53,7 @@ - block: - name: Add another vrf to filter nxos_snmp_host: &config1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 vrf_filter: default udp: 222 state: present @@ -70,7 +70,7 @@ - name: remove some configuration nxos_snmp_host: &rem1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 src_intf: "{{ intname|default(omit) }}" vrf: management @@ -89,7 +89,7 @@ - block: - name: remove some more configuration nxos_snmp_host: &rem2 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 vrf_filter: default state: absent diff --git a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml index 632ff2c3f8..c73921c87b 100644 --- a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml +++ b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_inform.yaml @@ -17,7 +17,7 @@ - name: Setup - Remove snmp_host if configured nxos_snmp_host: &remove - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING version: "{{ snmp_version }}" snmp_type: "{{ snmp_type }}" @@ -32,7 +32,7 @@ - name: Configure snmp host nxos_snmp_host: &config - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING v3: "{{ snmp_auth|default(omit) }}" version: "{{ snmp_version }}" @@ -58,7 +58,7 @@ - block: - name: Add another vrf to filter nxos_snmp_host: &config1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 vrf_filter: default state: present register: result @@ -74,7 +74,7 @@ - name: remove some configuration nxos_snmp_host: &rem1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 src_intf: "{{ intname|default(omit) }}" vrf: management vrf_filter: management @@ -92,7 +92,7 @@ - block: - name: remove some more configuration nxos_snmp_host: &rem2 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 vrf_filter: default state: absent register: result diff --git a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_trap.yaml b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_trap.yaml index c889093378..ffed7c4684 100644 --- a/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_trap.yaml +++ b/test/integration/targets/nxos_snmp_host/tests/common/sanity_snmp_v3_trap.yaml @@ -13,7 +13,7 @@ - name: Setup - Remove snmp_host if configured nxos_snmp_host: &remove - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING udp: 222 v3: "{{ snmp_auth|default(omit) }}" @@ -29,7 +29,7 @@ - name: Configure snmp host nxos_snmp_host: &config - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 community: TESTING udp: 222 v3: "{{ snmp_auth|default(omit) }}" @@ -56,7 +56,7 @@ - block: - name: Add another vrf to filter nxos_snmp_host: &config1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 vrf_filter: default state: present @@ -73,7 +73,7 @@ - name: remove some configuration nxos_snmp_host: &rem1 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 src_intf: "{{ intname|default(omit) }}" vrf: management @@ -92,7 +92,7 @@ - block: - name: remove some more configuration nxos_snmp_host: &rem2 - snmp_host: 3.3.3.3 + snmp_host: 192.0.2.3 udp: 222 vrf_filter: default state: absent diff --git a/test/integration/targets/nxos_static_route/tests/common/sanity.yaml b/test/integration/targets/nxos_static_route/tests/common/sanity.yaml index 9c90ae6427..946c21909d 100644 --- a/test/integration/targets/nxos_static_route/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_static_route/tests/common/sanity.yaml @@ -7,7 +7,7 @@ - name: create static route nxos_static_route: &configure prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 tag: 5500 @@ -31,7 +31,7 @@ - name: change static route nxos_static_route: &configure1 prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: default pref: 10 tag: default @@ -51,7 +51,7 @@ - name: remove static route nxos_static_route: &remove prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 vrf: "{{ item }}" @@ -71,8 +71,8 @@ - name: configure static route(aggregate) nxos_static_route: &conf_agg aggregate: - - { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - - { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } + - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" } + - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" } register: result - assert: @@ -90,8 +90,8 @@ - name: remove static route aggregate nxos_static_route: &remove_agg aggregate: - - { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - - { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } + - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" } + - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" } state: absent register: result @@ -111,7 +111,7 @@ - name: remove static route nxos_static_route: prefix: "192.168.20.64/24" - next_hop: "3.3.3.3" + next_hop: "192.0.2.3" route_name: testing pref: 100 tag: 5500 @@ -123,8 +123,8 @@ - name: remove static route aggregate nxos_static_route: aggregate: - - { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - - { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } + - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" } + - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" } state: absent ignore_errors: yes diff --git a/test/integration/targets/nxos_system/tests/cli/set_name_servers.yaml b/test/integration/targets/nxos_system/tests/cli/set_name_servers.yaml index 950d976891..a6bd35ab90 100644 --- a/test/integration/targets/nxos_system/tests/cli/set_name_servers.yaml +++ b/test/integration/targets/nxos_system/tests/cli/set_name_servers.yaml @@ -4,32 +4,32 @@ - name: setup nxos_config: &reset lines: - - no ip name-server 1.1.1.1 - - no ip name-server 2.2.2.2 - - no ip name-server 3.3.3.3 + - no ip name-server 192.0.2.1 + - no ip name-server 192.0.2.2 + - no ip name-server 192.0.2.3 match: none - name: configure name_servers nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: that: - result.changed == true - - "'ip name-server 1.1.1.1' in result.commands" - - "'ip name-server 2.2.2.2' in result.commands" - - "'ip name-server 3.3.3.3' in result.commands" + - "'ip name-server 192.0.2.1' in result.commands" + - "'ip name-server 192.0.2.2' in result.commands" + - "'ip name-server 192.0.2.3' in result.commands" - name: verify name_servers nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: @@ -39,24 +39,24 @@ #- name: change to vrf # nxos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # register: result #- assert: # that: # - result.changed == true # - result.commands|length == 2 -# - "'no ip name-server 2.2.2.2' in result.commands" -# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" +# - "'no ip name-server 192.0.2.2' in result.commands" +# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands" #- name: verify change to vrf # nxos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # register: result # #- assert: @@ -66,15 +66,15 @@ - name: remove one nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 register: result - assert: that: - result.changed == true - result.commands|length == 1 - - "'no ip name-server 3.3.3.3' in result.commands" + - "'no ip name-server 192.0.2.3' in result.commands" - name: default name server nxos_system: &defns diff --git a/test/integration/targets/nxos_system/tests/nxapi/set_name_servers.yaml b/test/integration/targets/nxos_system/tests/nxapi/set_name_servers.yaml index 2394903bf6..7baaa7e9f5 100644 --- a/test/integration/targets/nxos_system/tests/nxapi/set_name_servers.yaml +++ b/test/integration/targets/nxos_system/tests/nxapi/set_name_servers.yaml @@ -11,31 +11,31 @@ match: none ignore_errors: yes with_items: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 - name: configure name_servers nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: that: - result.changed == true - - "'ip name-server 1.1.1.1' in result.commands" - - "'ip name-server 2.2.2.2' in result.commands" - - "'ip name-server 3.3.3.3' in result.commands" + - "'ip name-server 192.0.2.1' in result.commands" + - "'ip name-server 192.0.2.2' in result.commands" + - "'ip name-server 192.0.2.3' in result.commands" - name: verify name_servers nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: @@ -45,24 +45,24 @@ #- name: change to vrf # nxos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # register: result #- assert: # that: # - result.changed == true # - result.commands|length == 2 -# - "'no ip name-server 2.2.2.2' in result.commands" -# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" +# - "'no ip name-server 192.0.2.2' in result.commands" +# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands" #- name: verify change to vrf # nxos_system: # name_servers: -# - 1.1.1.1 -# - { server: 2.2.2.2, vrf: ansible } -# - 3.3.3.3 +# - 192.0.2.1 +# - { server: 192.0.2.2, vrf: ansible } +# - 192.0.2.3 # register: result # #- assert: @@ -72,15 +72,15 @@ - name: remove one nxos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 + - 192.0.2.1 + - 192.0.2.2 register: result - assert: that: - result.changed == true - result.commands|length == 1 - - "'no ip name-server 3.3.3.3' in result.commands" + - "'no ip name-server 192.0.2.3' in result.commands" - name: default name server nxos_system: &defns @@ -102,9 +102,9 @@ - name: teardown nxos_config: *reset with_items: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 ignore_errors: yes - debug: msg="END nxapi/set_name_servers.yaml" diff --git a/test/integration/targets/nxos_vxlan_vtep_vni/tests/common/sanity.yaml b/test/integration/targets/nxos_vxlan_vtep_vni/tests/common/sanity.yaml index fdd7f68faa..8f8cf662ff 100644 --- a/test/integration/targets/nxos_vxlan_vtep_vni/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_vxlan_vtep_vni/tests/common/sanity.yaml @@ -179,10 +179,10 @@ interface: nve1 vni: 8000 peer_list: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 - - 4.4.4.4 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 + - 192.0.2.4 ingress_replication: static register: result diff --git a/test/integration/targets/vyos_system/tests/cli/basic.yaml b/test/integration/targets/vyos_system/tests/cli/basic.yaml index f8958db49c..c42eddea84 100644 --- a/test/integration/targets/vyos_system/tests/cli/basic.yaml +++ b/test/integration/targets/vyos_system/tests/cli/basic.yaml @@ -4,33 +4,33 @@ - name: setup vyos_config: lines: - - delete system name-server 1.1.1.1 - - delete system name-server 2.2.2.2 - - delete system name-server 3.3.3.3 + - delete system name-server 192.0.2.1 + - delete system name-server 192.0.2.2 + - delete system name-server 192.0.2.3 match: none - name: configure name servers vyos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: that: - result.changed == true - result.commands|length == 3 - - result.commands[0] is search("set system name-server '1.1.1.1'") - - result.commands[1] is search("set system name-server '2.2.2.2'") - - result.commands[2] is search("set system name-server '3.3.3.3'") + - result.commands[0] is search("set system name-server '192.0.2.1'") + - result.commands[1] is search("set system name-server '192.0.2.2'") + - result.commands[2] is search("set system name-server '192.0.2.3'") - name: verify name_servers vyos_system: name_servers: - - 1.1.1.1 - - 2.2.2.2 - - 3.3.3.3 + - 192.0.2.1 + - 192.0.2.2 + - 192.0.2.3 register: result - assert: @@ -40,7 +40,7 @@ - name: remove one vyos_system: name_servers: - - 3.3.3.3 + - 192.0.2.3 state: absent register: result @@ -48,14 +48,14 @@ that: - result.changed == true - result.commands|length == 1 - - result.commands[0] is search("delete system name-server '3.3.3.3'") + - result.commands[0] is search("delete system name-server '192.0.2.3'") - name: teardown vyos_config: lines: - - delete system name-server name-server 1.1.1.1 - - delete system name-server name-server 2.2.2.2 - - delete system name-server name-server 3.3.3.3 + - delete system name-server name-server 192.0.2.1 + - delete system name-server name-server 192.0.2.2 + - delete system name-server name-server 192.0.2.3 match: none - debug: msg="END cli/basic.yaml on connection={{ ansible_connection }}" diff --git a/test/integration/targets/vyos_system/tests/cli/net_system.yaml b/test/integration/targets/vyos_system/tests/cli/net_system.yaml index c7a29fa991..b7813c09f0 100644 --- a/test/integration/targets/vyos_system/tests/cli/net_system.yaml +++ b/test/integration/targets/vyos_system/tests/cli/net_system.yaml @@ -7,24 +7,24 @@ - name: setup vyos_config: lines: - - delete system name-server 1.1.1.1 + - delete system name-server 192.0.2.1 match: none - name: configure name servers using platform agnostic module net_system: name_servers: - - 1.1.1.1 + - 192.0.2.1 register: result - assert: that: - result.changed == true - - result.commands[0] is search("set system name-server '1.1.1.1'") + - result.commands[0] is search("set system name-server '192.0.2.1'") - name: setup vyos_config: lines: - - delete system name-server 1.1.1.1 + - delete system name-server 192.0.2.1 match: none - debug: msg="END vyos cli/net_system.yaml on connection={{ ansible_connection }}" |