JN0-221 Exam QuestionsBrowse all questions from this exam

JN0-221 Exam - Question 30


Click the Exhibit button.

You need to translate the configuration shown in the exhibit into a PyEZ RPC call.

Which line shows the proper PyEZ syntax?

Show Answer
Correct Answer: A

The proper PyEZ syntax for the given configuration is dev.rpc.get_route_information(table="inet.0"). In PyEZ, the underscores are used in place of dashes in RPC method names, and the function arguments are passed in the form of key-value pairs. Therefore, option A correctly translates the configuration into a PyEZ RPC call.

Discussion

1 comment
Sign in to comment
penguin02007Option: A
Nov 12, 2023

A is correct. https://www.juniper.net/documentation/us/en/software/junos-pyez/junos-pyez-developer/topics/task/junos-pyez-rpcs-executing.html