QuestionQ46

VerifiedPython/PyEZ

Select the Exhibit button.

Question Image

You need to convert the configuration displayed in the exhibit into a PyEZ RPC call.

Which line shows the correct PyEZ syntax?

Explanation

Junos PyEZ converts the XML RPC tag get-route-information to the Python method get_route_information, replacing hyphens with underscores. The table value is supplied as a Python keyword argument, so table="inet.0" is valid syntax.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!