We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5b9f85 + 3a19d59 commit 21fedd9Copy full SHA for 21fedd9
library/junos_rpc
@@ -128,18 +128,20 @@ EXAMPLES = '''
128
register: junos
129
130
# Example to fetch configuration in json for >=14.2
131
+# and use it with rpc_reply
132
- name: Get Device Configuration
133
hosts: all
134
roles:
135
- Juniper.junos
136
connection: local
137
gather_facts: no
138
tasks:
- - name: Get rpc run
139
+ - name: Get interface information
140
junos_rpc:
141
host={{ inventory_hostname }}
142
rpc=get-interface-information
143
kwargs={interface_name:em0,media:True}
144
+ format=json
145
dest=get_interface_information.conf
146
147
0 commit comments