mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules (#34778)
* fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Define functions in individual action plugins to avoid code duplication Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add net_* eos tests for eapi Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * update plugin code
This commit is contained in:
parent
c04cd8642d
commit
48ecbb8fb9
13 changed files with 338 additions and 57 deletions
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- debug: msg="START connection={{ ansible_connection }} nxos_logging basic test"
|
||||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- name: Set up console logging
|
||||
nxos_logging:
|
||||
dest: console
|
||||
|
@ -88,3 +92,5 @@
|
|||
- 'result.changed == true'
|
||||
- '"no logging logfile" in result.commands'
|
||||
- '"no logging level daemon" in result.commands'
|
||||
|
||||
- debug: msg="END connection={{ ansible_connection }} nxos_logging basic test"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
- debug: msg="START nxos common/net_logging.yaml on connection={{ ansible_connection }}"
|
||||
- debug: msg="START connection={{ ansible_connection }} nxos common/net_logging.yaml"
|
||||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
# Add minimal testcase to check args are passed correctly to
|
||||
# implementation module and module run is successful.
|
||||
|
@ -33,4 +35,5 @@
|
|||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- debug: msg="END nxos common/net_logging.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- debug: msg="END connection={{ ansible_connection }} nxos common/net_logging.yaml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue