Changes to enable network_cli and netconf on iosxr integration tests. (#35269)

* * Changes to enable network_cli and netconf on modules.
* limits connection local for single TC per playbook.

* * adds a note on why only 1 TC is executed with connection: local
This commit is contained in:
Kedar Kekan 2018-01-24 19:46:27 +05:30 committed by GitHub
commit 56eeaf1b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 548 additions and 499 deletions

View file

@ -7,8 +7,8 @@
- name: setup
iosxr_config:
lines:
- no ip domain-list ansible.com
- no ip domain-list redhat.com
- no domain list ansible.com
- no domain list redhat.com
match: none
provider: "{{ cli }}"
@ -26,11 +26,11 @@
- "'domain list ansible.com' in result.commands"
- "'domain list redhat.com' in result.commands"
- name: setup
- name: teardown
iosxr_config:
lines:
- no ip domain-list ansible.com
- no ip domain-list redhat.com
- no domain list ansible.com
- no domain list redhat.com
match: none
provider: "{{ cli }}"

View file

@ -4,8 +4,8 @@
- name: setup
iosxr_config:
lines:
- no ip domain-list ansible.com
- no ip domain-list redhat.com
- no domain list ansible.com
- no domain list redhat.com
match: none
provider: "{{ cli }}"
@ -114,7 +114,6 @@
iosxr_config:
lines:
- no domain list ansible.com
- no domain list redhat.com
- no domain list eng.ansible.com
match: none
provider: "{{ cli }}"

View file

@ -3,9 +3,7 @@
- name: setup
iosxr_config:
lines:
- no domain lookup source-interface Loopback10
# - vrf ansible
lines: no domain lookup source-interface Loopback10
match: none
provider: "{{ cli }}"
@ -30,36 +28,10 @@
that:
- result.changed == false
#- name: change to vrf
# iosxr_system:
# lookup_source:
# - interface: Loopback10
# vrf: ansible
# register: result
#
#- assert:
# that:
# - result.changed == true
# - "'no ip domain lookup source-interface Management1' in result.commands"
# - "'ip domain lookup vrf ansible source-interface Management1' in result.commands"
# - result.commands|length == 2
#
#- name: verify change to vrf
# iosxr_system:
# lookup_source:
# - interface: Management1
# vrf: ansible
# register: result
#
#- assert:
# that:
# - result.changed == false
- name: teardown
iosxr_config:
lines:
- no domain lookup source-interface Loopback10
- no vrf ansible
match: none
provider: "{{ cli }}"

View file

@ -40,33 +40,6 @@
that:
- result.changed == false
#- name: change to vrf
# iosxr_system:
# name_servers:
# - 1.1.1.1
# - { server: 2.2.2.2, vrf: ansible }
# - 3.3.3.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"
#- name: verify change to vrf
# iosxr_system:
# name_servers:
# - 1.1.1.1
# - { server: 2.2.2.2, vrf: ansible }
# - 3.3.3.3
# register: result
#
#- assert:
# that:
# - result.changed == false
- name: remove one
iosxr_system:
name_servers:
@ -86,7 +59,6 @@
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
match: none
provider: "{{ cli }}"