mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove provider lines from iosxr tests (#29956)
We don't use authorize on iosxr nor we use a special transport, so no need to use iosxr for CLI at all.
This commit is contained in:
parent
599fe23ed6
commit
1da7194534
14 changed files with 0 additions and 88 deletions
|
@ -3,7 +3,6 @@
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
banner: login
|
banner: login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Set login
|
- name: Set login
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
banner: motd
|
banner: motd
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Set motd
|
- name: Set motd
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -6,13 +6,11 @@
|
||||||
Junk login banner
|
Junk login banner
|
||||||
over multiple lines
|
over multiple lines
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: remove login
|
- name: remove login
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
banner: login
|
banner: login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
iosxr_banner:
|
iosxr_banner:
|
||||||
banner: login
|
banner: login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
iosxr_interface:
|
iosxr_interface:
|
||||||
name: GigabitEthernet0/0/0/2
|
name: GigabitEthernet0/0/0/2
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +13,6 @@
|
||||||
name: GigabitEthernet0/0/0/2
|
name: GigabitEthernet0/0/0/2
|
||||||
description: test-interface-initial
|
description: test-interface-initial
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
name: GigabitEthernet0/0/0/2
|
name: GigabitEthernet0/0/0/2
|
||||||
description: test-interface-initial
|
description: test-interface-initial
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -42,7 +39,6 @@
|
||||||
duplex: half
|
duplex: half
|
||||||
mtu: 512
|
mtu: 512
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -61,7 +57,6 @@
|
||||||
duplex: full
|
duplex: full
|
||||||
mtu: 256
|
mtu: 256
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -80,7 +75,6 @@
|
||||||
duplex: full
|
duplex: full
|
||||||
mtu: 256
|
mtu: 256
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
|
@ -90,7 +84,6 @@
|
||||||
iosxr_interface:
|
iosxr_interface:
|
||||||
name: GigabitEthernet0/0/0/2
|
name: GigabitEthernet0/0/0/2
|
||||||
enabled: False
|
enabled: False
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -102,7 +95,6 @@
|
||||||
iosxr_interface:
|
iosxr_interface:
|
||||||
name: GigabitEthernet0/0/0/2
|
name: GigabitEthernet0/0/0/2
|
||||||
enabled: True
|
enabled: True
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -115,7 +107,6 @@
|
||||||
name: GigabitEthernet0/0/0/3
|
name: GigabitEthernet0/0/0/3
|
||||||
description: test-interface-initial
|
description: test-interface-initial
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -138,7 +129,6 @@
|
||||||
speed: 100
|
speed: 100
|
||||||
duplex: full
|
duplex: full
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -162,7 +152,6 @@
|
||||||
speed: 100
|
speed: 100
|
||||||
duplex: full
|
duplex: full
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -176,7 +165,6 @@
|
||||||
- name: GigabitEthernet0/0/0/2
|
- name: GigabitEthernet0/0/0/2
|
||||||
enabled: False
|
enabled: False
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -192,7 +180,6 @@
|
||||||
- name: GigabitEthernet0/0/0/2
|
- name: GigabitEthernet0/0/0/2
|
||||||
enabled: True
|
enabled: True
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -207,7 +194,6 @@
|
||||||
- name: GigabitEthernet0/0/0/4
|
- name: GigabitEthernet0/0/0/4
|
||||||
- name: GigabitEthernet0/0/0/5
|
- name: GigabitEthernet0/0/0/5
|
||||||
description: test-interface-initial
|
description: test-interface-initial
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Create interface aggregate
|
- name: Create interface aggregate
|
||||||
|
@ -218,7 +204,6 @@
|
||||||
- name: GigabitEthernet0/0/0/5
|
- name: GigabitEthernet0/0/0/5
|
||||||
description: test_interface_2
|
description: test_interface_2
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -233,7 +218,6 @@
|
||||||
- name: GigabitEthernet0/0/0/4
|
- name: GigabitEthernet0/0/0/4
|
||||||
- name: GigabitEthernet0/0/0/5
|
- name: GigabitEthernet0/0/0/5
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -248,7 +232,6 @@
|
||||||
- name: GigabitEthernet0/0/0/4
|
- name: GigabitEthernet0/0/0/4
|
||||||
- name: GigabitEthernet0/0/0/5
|
- name: GigabitEthernet0/0/0/5
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
description: test_interface_5
|
description: test_interface_5
|
||||||
enabled: True
|
enabled: True
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Check intent arguments
|
- name: Check intent arguments
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
name: GigabitEthernet0/0/0/5
|
name: GigabitEthernet0/0/0/5
|
||||||
state: up
|
state: up
|
||||||
delay: 20
|
delay: 20
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -26,7 +24,6 @@
|
||||||
iosxr_interface:
|
iosxr_interface:
|
||||||
name: GigabitEthernet0/0/0/5
|
name: GigabitEthernet0/0/0/5
|
||||||
state: down
|
state: down
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -41,7 +38,6 @@
|
||||||
enabled: False
|
enabled: False
|
||||||
state: down
|
state: down
|
||||||
delay: 20
|
delay: 20
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -53,7 +49,6 @@
|
||||||
name: GigabitEthernet0/0/0/5
|
name: GigabitEthernet0/0/0/5
|
||||||
enabled: False
|
enabled: False
|
||||||
state: up
|
state: up
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -69,7 +64,6 @@
|
||||||
enabled: True
|
enabled: True
|
||||||
state: up
|
state: up
|
||||||
delay: 20
|
delay: 20
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,12 @@
|
||||||
dest: hostnameprefix
|
dest: hostnameprefix
|
||||||
name: 172.16.0.1
|
name: 172.16.0.1
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Remove console logging
|
- name: Remove console logging
|
||||||
iosxr_logging:
|
iosxr_logging:
|
||||||
dest: console
|
dest: console
|
||||||
level: warning
|
level: warning
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Remove buffer
|
- name: Remove buffer
|
||||||
|
@ -20,7 +18,6 @@
|
||||||
dest: buffered
|
dest: buffered
|
||||||
size: 4800000
|
size: 4800000
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
# Start tests
|
# Start tests
|
||||||
|
@ -29,7 +26,6 @@
|
||||||
dest: hostnameprefix
|
dest: hostnameprefix
|
||||||
name: 172.16.0.1
|
name: 172.16.0.1
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -43,7 +39,6 @@
|
||||||
dest: hostnameprefix
|
dest: hostnameprefix
|
||||||
name: 172.16.0.1
|
name: 172.16.0.1
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -55,7 +50,6 @@
|
||||||
dest: hostnameprefix
|
dest: hostnameprefix
|
||||||
name: 172.16.0.1
|
name: 172.16.0.1
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -68,7 +62,6 @@
|
||||||
dest: hostnameprefix
|
dest: hostnameprefix
|
||||||
name: 172.16.0.1
|
name: 172.16.0.1
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -80,7 +73,6 @@
|
||||||
dest: console
|
dest: console
|
||||||
level: warning
|
level: warning
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -92,7 +84,6 @@
|
||||||
iosxr_logging:
|
iosxr_logging:
|
||||||
dest: buffered
|
dest: buffered
|
||||||
size: 4800000
|
size: 4800000
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -105,7 +96,6 @@
|
||||||
aggregate:
|
aggregate:
|
||||||
- { dest: console, level: notifications }
|
- { dest: console, level: notifications }
|
||||||
- { dest: buffered, size: 4700000 }
|
- { dest: buffered, size: 4700000 }
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -120,7 +110,6 @@
|
||||||
- { dest: console, level: notifications }
|
- { dest: console, level: notifications }
|
||||||
- { dest: buffered, size: 4700000 }
|
- { dest: buffered, size: 4700000 }
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -7,14 +7,12 @@
|
||||||
- no ip domain-list ansible.com
|
- no ip domain-list ansible.com
|
||||||
- no ip domain-list redhat.com
|
- no ip domain-list redhat.com
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure domain_search
|
- name: configure domain_search
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- redhat.com
|
- redhat.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -28,7 +26,6 @@
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- redhat.com
|
- redhat.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -39,7 +36,6 @@
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -51,7 +47,6 @@
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -63,7 +58,6 @@
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- redhat.com
|
- redhat.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -76,7 +70,6 @@
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- redhat.com
|
- redhat.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -88,7 +81,6 @@
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- eng.ansible.com
|
- eng.ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -103,7 +95,6 @@
|
||||||
domain_search:
|
domain_search:
|
||||||
- ansible.com
|
- ansible.com
|
||||||
- eng.ansible.com
|
- eng.ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -117,6 +108,5 @@
|
||||||
- no domain list redhat.com
|
- no domain list redhat.com
|
||||||
- no domain list eng.ansible.com
|
- no domain list eng.ansible.com
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- debug: msg="END cli/set_domain_search.yaml"
|
- debug: msg="END cli/set_domain_search.yaml"
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
iosxr_config:
|
iosxr_config:
|
||||||
lines: no domain name
|
lines: no domain name
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure domain_name
|
- name: configure domain_name
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
domain_name: eng.ansible.com
|
domain_name: eng.ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -20,7 +18,6 @@
|
||||||
- name: verify domain_name
|
- name: verify domain_name
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
domain_name: eng.ansible.com
|
domain_name: eng.ansible.com
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -31,6 +28,5 @@
|
||||||
iosxr_config:
|
iosxr_config:
|
||||||
lines: no domain name
|
lines: no domain name
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- debug: msg="END cli/set_domain_name.yaml"
|
- debug: msg="END cli/set_domain_name.yaml"
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
iosxr_config:
|
iosxr_config:
|
||||||
lines: hostname switch
|
lines: hostname switch
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure hostname
|
- name: configure hostname
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
hostname: foo
|
hostname: foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -20,7 +18,6 @@
|
||||||
- name: verify hostname
|
- name: verify hostname
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
hostname: foo
|
hostname: foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -31,6 +28,5 @@
|
||||||
iosxr_config:
|
iosxr_config:
|
||||||
lines: "hostname {{ inventory_hostname }}"
|
lines: "hostname {{ inventory_hostname }}"
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- debug: msg="END cli/set_hostname.yaml"
|
- debug: msg="END cli/set_hostname.yaml"
|
||||||
|
|
|
@ -7,12 +7,10 @@
|
||||||
- no domain lookup source-interface Loopback10
|
- no domain lookup source-interface Loopback10
|
||||||
# - vrf ansible
|
# - vrf ansible
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure lookup_source
|
- name: configure lookup_source
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
lookup_source: Loopback10
|
lookup_source: Loopback10
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -23,7 +21,6 @@
|
||||||
- name: verify lookup_source
|
- name: verify lookup_source
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
lookup_source: Loopback10
|
lookup_source: Loopback10
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -35,7 +32,6 @@
|
||||||
# lookup_source:
|
# lookup_source:
|
||||||
# - interface: Loopback10
|
# - interface: Loopback10
|
||||||
# vrf: ansible
|
# vrf: ansible
|
||||||
# provider: "{{ cli }}"
|
|
||||||
# register: result
|
# register: result
|
||||||
#
|
#
|
||||||
#- assert:
|
#- assert:
|
||||||
|
@ -50,7 +46,6 @@
|
||||||
# lookup_source:
|
# lookup_source:
|
||||||
# - interface: Management1
|
# - interface: Management1
|
||||||
# vrf: ansible
|
# vrf: ansible
|
||||||
# provider: "{{ cli }}"
|
|
||||||
# register: result
|
# register: result
|
||||||
#
|
#
|
||||||
#- assert:
|
#- assert:
|
||||||
|
@ -63,6 +58,5 @@
|
||||||
- no domain lookup source-interface Loopback10
|
- no domain lookup source-interface Loopback10
|
||||||
- no vrf ansible
|
- no vrf ansible
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- debug: msg="END cli/set_lookup_source.yaml"
|
- debug: msg="END cli/set_lookup_source.yaml"
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
- no ip name-server 2.2.2.2
|
- no ip name-server 2.2.2.2
|
||||||
- no ip name-server 3.3.3.3
|
- no ip name-server 3.3.3.3
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure name_servers
|
- name: configure name_servers
|
||||||
iosxr_system:
|
iosxr_system:
|
||||||
|
@ -16,7 +15,6 @@
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 2.2.2.2
|
- 2.2.2.2
|
||||||
- 3.3.3.3
|
- 3.3.3.3
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 2.2.2.2
|
- 2.2.2.2
|
||||||
- 3.3.3.3
|
- 3.3.3.3
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -46,7 +43,6 @@
|
||||||
# - 1.1.1.1
|
# - 1.1.1.1
|
||||||
# - { server: 2.2.2.2, vrf: ansible }
|
# - { server: 2.2.2.2, vrf: ansible }
|
||||||
# - 3.3.3.3
|
# - 3.3.3.3
|
||||||
# provider: "{{ cli }}"
|
|
||||||
# register: result
|
# register: result
|
||||||
|
|
||||||
#- assert:
|
#- assert:
|
||||||
|
@ -62,7 +58,6 @@
|
||||||
# - 1.1.1.1
|
# - 1.1.1.1
|
||||||
# - { server: 2.2.2.2, vrf: ansible }
|
# - { server: 2.2.2.2, vrf: ansible }
|
||||||
# - 3.3.3.3
|
# - 3.3.3.3
|
||||||
# provider: "{{ cli }}"
|
|
||||||
# register: result
|
# register: result
|
||||||
#
|
#
|
||||||
#- assert:
|
#- assert:
|
||||||
|
@ -74,7 +69,6 @@
|
||||||
name_servers:
|
name_servers:
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 2.2.2.2
|
- 2.2.2.2
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
iosxr_user:
|
iosxr_user:
|
||||||
name: auth_user
|
name: auth_user
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
configured_password: pass123
|
configured_password: pass123
|
||||||
|
|
||||||
- name: test login
|
- name: test login
|
||||||
|
@ -31,5 +30,4 @@
|
||||||
iosxr_user:
|
iosxr_user:
|
||||||
name: auth_user
|
name: auth_user
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
|
@ -5,14 +5,12 @@
|
||||||
- no username ansibletest1
|
- no username ansibletest1
|
||||||
- no username ansibletest2
|
- no username ansibletest2
|
||||||
- no username ansibletest3
|
- no username ansibletest3
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Create user (SetUp)
|
- name: Create user (SetUp)
|
||||||
iosxr_user:
|
iosxr_user:
|
||||||
name: ansibletest1
|
name: ansibletest1
|
||||||
configured_password: test
|
configured_password: test
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
configured_password: test
|
configured_password: test
|
||||||
update_password: always
|
update_password: always
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -42,7 +39,6 @@
|
||||||
configured_password: test
|
configured_password: test
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -57,7 +53,6 @@
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
group: sysadmin
|
group: sysadmin
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -73,7 +68,6 @@
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
group: sysadmin
|
group: sysadmin
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -89,7 +83,6 @@
|
||||||
configured_password: test
|
configured_password: test
|
||||||
state: present
|
state: present
|
||||||
group: sysadmin
|
group: sysadmin
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -110,7 +103,6 @@
|
||||||
configured_password: test
|
configured_password: test
|
||||||
state: present
|
state: present
|
||||||
group: sysadmin
|
group: sysadmin
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -130,7 +122,6 @@
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
state: present
|
state: present
|
||||||
group: sysadmin
|
group: sysadmin
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -145,7 +136,6 @@
|
||||||
- name: ansibletest2
|
- name: ansibletest2
|
||||||
- name: ansibletest3
|
- name: ansibletest3
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -160,7 +150,6 @@
|
||||||
- name: ansibletest2
|
- name: ansibletest2
|
||||||
- name: ansibletest3
|
- name: ansibletest3
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
- name: Ensure we have loopback 888 for testing
|
- name: Ensure we have loopback 888 for testing
|
||||||
iosxr_config:
|
iosxr_config:
|
||||||
src: config.j2
|
src: config.j2
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
|
|
||||||
# Some AWS hostnames can be longer than those allowed by the system we are testing
|
# Some AWS hostnames can be longer than those allowed by the system we are testing
|
||||||
# Truncate the hostname
|
# Truncate the hostname
|
||||||
|
|
Loading…
Reference in a new issue