Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ansible_collections/juniper/device/plugins/modules/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@
shown in the :ref:`rpc-examples-label`.
- By default "0" and "1" will be converted to boolean values. In case
it doesn't need to be transformed to boolean pass first kwargs as
allow_bool_values : "0"
example -
kwargs:
allow_bool_values: "0"
data: "1"
required: false
default: none
type: dict or list of dict
Expand Down
31 changes: 31 additions & 0 deletions tests/pb.juniper_junos_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,34 @@
that:
test10.results[0].msg == "The RPC executed successfully."
tags: [ test10 ]

- name: Check rollback info
rpc:
rpc: get-rollback-information
kwargs:
rollback: "3"
compare: "2"
register: test11
tags: [ test11 ]

- name: Check TEST 11
assert:
that:
test11.msg == "The RPC executed successfully."
tags: [ test11 ]

- name: Check rollback info with boolean values
rpc:
rpc: get-rollback-information
kwargs:
allow_bool_values : "0"
rollback: "1"
compare: "0"
register: test12
tags: [ test12 ]

- name: Check TEST 12
assert:
that:
test12.msg == "The RPC executed successfully."
tags: [ test12 ]