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:
Nathaniel Case
2018-05-17 18:47:15 -04:00
committed by GitHub
parent cc61c86049
commit e9d7fa0418
277 changed files with 1325 additions and 1676 deletions

View File

@@ -10,14 +10,12 @@
nxos_config: &intdefault1
lines:
- "default interface {{ testint1 }}"
provider: "{{ cli }}"
ignore_errors: yes
- name: "Put interface {{testint2}} into default state"
nxos_config: &intdefault2
lines:
- "default interface {{ testint2 }}"
provider: "{{ cli }}"
ignore_errors: yes
- name: "Make {{testint1}} a layer3 interface"
@@ -27,7 +25,6 @@
description: 'Configured by Ansible - Layer3'
admin_state: 'up'
state: present
provider: "{{ cli }}"
- name: "Make {{testint2}} a layer3 interface"
nxos_interface: &l3int2
@@ -36,7 +33,6 @@
description: 'Configured by Ansible - Layer3'
admin_state: 'up'
state: present
provider: "{{ cli }}"
# For titanium
- name: Clear interface v4
@@ -46,7 +42,6 @@
state: absent
addr: 20.20.20.20
mask: 24
provider: "{{ cli }}"
# For titanium
- name: Clear interface v6
@@ -56,7 +51,6 @@
state: absent
addr: 'fd56:31f7:e4ad:5585::1'
mask: 64
provider: "{{ cli }}"
- name: Ensure ipv4 address is configured
nxos_ip_interface: &ipv4
@@ -65,7 +59,6 @@
state: present
addr: 20.20.20.20
mask: 24
provider: "{{ cli }}"
register: result
- assert: &true
@@ -87,7 +80,6 @@
state: present
addr: 'fd56:31f7:e4ad:5585::1'
mask: 64
provider: "{{ cli }}"
register: result
- assert: *true