mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Refactor junos modules to Use netconf and cliconf plugins (#32621)
* Fix junos integration test fixes as per connection refactor (#33050) Refactor netconf connection plugin to work with netconf plugin * Fix junos integration test fixes as per connection refactor (#33050) Refactor netconf connection plugin to work with netconf plugin Fix CI failure Fix unit test failure Fix review comments
This commit is contained in:
parent
0c75f00248
commit
3d63ecb6f3
37 changed files with 543 additions and 320 deletions
|
@ -29,4 +29,33 @@
|
|||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for single command with cli transport
|
||||
junos_command:
|
||||
commands: ['show version | display json']
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for multiple commands with cli transport
|
||||
junos_command:
|
||||
commands:
|
||||
- show version
|
||||
- show route
|
||||
format: json
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- debug: msg="END netconf_json/output.yaml"
|
||||
|
|
|
@ -29,4 +29,34 @@
|
|||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for single command with cli transport
|
||||
junos_command:
|
||||
commands: show version
|
||||
display: text
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for multiple commands with cli transport
|
||||
junos_command:
|
||||
commands:
|
||||
- show version
|
||||
- show route
|
||||
display: text
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- debug: msg="END netconf_text/output.yaml"
|
||||
|
|
|
@ -29,4 +29,33 @@
|
|||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for single command with cli transport
|
||||
junos_command:
|
||||
commands: show version | display xml
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- name: get output for multiple commands with cli transport
|
||||
junos_command:
|
||||
commands:
|
||||
- show version
|
||||
- show route
|
||||
display: xml
|
||||
provider:
|
||||
transport: cli
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- debug: msg="END netconf_xml/output.yaml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue