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

@@ -13,7 +13,6 @@
nxos_config: &default
lines:
- "default interface {{ intname }}"
provider: "{{ connection }}"
ignore_errors: yes
- name: "Setup: Put interface into no switch port mode"
@@ -23,7 +22,6 @@
parents:
- "interface {{ intname }}"
match: none
provider: "{{ connection }}"
ignore_errors: yes
- name: "Setup: Cleanup possibly existing acl"
@@ -31,7 +29,6 @@
name: ANSIBLE_ACL
seq: 10
state: delete_acl
provider: "{{ connection }}"
ignore_errors: yes
- name: Configure Supporting ACL
@@ -42,7 +39,6 @@
proto: tcp
src: 1.1.1.1/24
dest: any
provider: "{{ connection }}"
- block:
- name: Configure acl interface egress
@@ -51,7 +47,6 @@
interface: "{{ intname }}"
direction: egress
state: present
provider: "{{ connection }}"
register: result
- assert: &true
@@ -72,7 +67,6 @@
interface: "{{ intname }}"
direction: ingress
state: present
provider: "{{ connection }}"
register: result
- assert: *true
@@ -89,7 +83,6 @@
interface: "{{ intname }}"
direction: egress
state: absent
provider: "{{ connection }}"
register: result
- assert: *true
@@ -106,7 +99,6 @@
interface: "{{ intname }}"
direction: ingress
state: absent
provider: "{{ connection }}"
register: result
- assert: *true