Fixing issues with httpapi (#40388)

* I seem to have forgotten the back half of tests

* Set http timeout from persistent_command_timeout

* Tweak URL generation and provide URL on error

* Push var_options to connection process

* Don't wait forever if coming from persistent

* Don't send the entire contents of variables to ansible-connection
This commit is contained in:
Nathaniel Case 2018-05-21 10:58:35 -04:00 committed by John R Barker
commit 483df13626
61 changed files with 46 additions and 390 deletions

View file

@ -8,7 +8,6 @@
nxos_feature:
feature: vpc
state: enabled
provider: "{{ connection }}"
- name: create port-channel10
nxos_config:
@ -16,7 +15,6 @@
- interface port-channel10
- switchport
match: none
provider: "{{ connection }}"
- name: create port-channel11
nxos_config:
@ -24,7 +22,6 @@
- interface port-channel11
- switchport
match: none
provider: "{{ connection }}"
- name: configure vpc
nxos_vpc:
@ -36,13 +33,11 @@
pkl_src: 10.1.100.20
peer_gw: true
auto_recovery: false
provider: "{{ connection }}"
- name: Configure vpc port channel
nxos_vpc_interface: &conf
portchannel: 10
vpc: 10
provider: "{{ connection }}"
register: result
- assert: &true
@ -61,7 +56,6 @@
nxos_vpc_interface: &conf1
portchannel: 11
peer_link: True
provider: "{{ connection }}"
register: result
- assert: *true
@ -76,7 +70,6 @@
nxos_vpc_interface: &conf2
portchannel: 11
peer_link: False
provider: "{{ connection }}"
register: result
- assert: *true
@ -92,7 +85,6 @@
portchannel: 10
vpc: 10
state: absent
provider: "{{ connection }}"
register: result
- assert: *true
@ -114,7 +106,6 @@
pkl_src: 10.1.100.20
peer_gw: true
auto_recovery: false
provider: "{{ connection }}"
ignore_errors: yes
- name: remove vpc port channel
@ -122,7 +113,6 @@
portchannel: 10
vpc: 10
state: absent
provider: "{{ connection }}"
ignore_errors: yes
- name: remove port channel
@ -131,13 +121,11 @@
- no interface port-channel10
- no interface port-channel11
match: none
provider: "{{ connection }}"
ignore_errors: yes
- name: disable feature vpc
nxos_feature:
feature: vpc
state: disabled
provider: "{{ connection }}"
- debug: msg="END connection={{ ansible_connection }} nxos_vpc_interface sanity test"