mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
HTTP(S) API connection plugin (#39224)
* HTTPAPI connection * Punt run_commands to cliconf or httpapi * Fake enable_mode on eapi * Pull changes to nxos * Move load_config to edit_config for future-preparedness * Don't fail on lldp disabled * Re-enable check_rc on nxos' run_commands * Reorganize nxos httpapi plugin for compatibility * draft docs for connection: httpapi * restores docs for connection:local for eapi * Add _remote_is_local to httpapi
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
- no ip address 192.168.22.1/24
|
||||
parents: no switchport
|
||||
before: "interface {{ testint2 }}"
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Setup - remove address from interface prior to testing(Part2)
|
||||
@@ -27,7 +26,6 @@
|
||||
- no ipv6 address 33:db::2/8
|
||||
parents: no switchport
|
||||
before: "interface {{ testint3 }}"
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Setup - Ensure interfaces are layer3
|
||||
@@ -36,13 +34,11 @@
|
||||
- name: "{{ testint2 }}"
|
||||
- name: "{{ testint3 }}"
|
||||
mode: layer3
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: Configure ipv4 address to interface
|
||||
nxos_l3_interface: &conf
|
||||
name: "{{ testint2 }}"
|
||||
ipv4: 192.168.22.1/24
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -61,7 +57,6 @@
|
||||
nxos_l3_interface: &rm
|
||||
name: "{{ testint2 }}"
|
||||
ipv4: 192.168.22.1/24
|
||||
provider: "{{ cli }}"
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
@@ -82,7 +77,6 @@
|
||||
aggregate:
|
||||
- { name: "{{ testint2 }}", ipv4: 192.168.22.1/24 }
|
||||
- { name: "{{ testint3 }}", ipv4: 192.168.20.1/24, ipv6: "{{ ipv6_address }}" }
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -102,7 +96,6 @@
|
||||
aggregate:
|
||||
- { name: "{{ testint2 }}", ipv4: 192.168.22.1/24 }
|
||||
- { name: "{{ testint3 }}", ipv4: 192.168.20.1/24, ipv6: "{{ ipv6_address }}" }
|
||||
provider: "{{ cli }}"
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user