Skip to content

Commit 21fedd9

Browse files
committed
Merge pull request #115 from vnitinv/master
junos_rpc examples updated
2 parents a5b9f85 + 3a19d59 commit 21fedd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/junos_rpc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,20 @@ EXAMPLES = '''
128128
register: junos
129129
130130
# Example to fetch configuration in json for >=14.2
131+
# and use it with rpc_reply
131132
- name: Get Device Configuration
132133
hosts: all
133134
roles:
134135
- Juniper.junos
135136
connection: local
136137
gather_facts: no
137138
tasks:
138-
- name: Get rpc run
139+
- name: Get interface information
139140
junos_rpc:
140141
host={{ inventory_hostname }}
141142
rpc=get-interface-information
142143
kwargs={interface_name:em0,media:True}
144+
format=json
143145
dest=get_interface_information.conf
144146
register: junos
145147

0 commit comments

Comments
 (0)