QuestionQ175

Understanding and Using APIs

Question Image

Refer to the exhibit. A developer is creating a YANG file to model data with Python. Which code must be used to produce the tree for the YANG file?

  • A pyang -f tree future-industries-tech.yang
  • B pyang -i tree future-industries-tech.yang
  • C pyang -f leaf future-industries-tech.yang
  • D pyang tree future-industries-tech.yang
Explanation

Pyang selects its output representation with the -f option. Setting that format to tree generates a tree diagram of the YANG module; the input module filename follows the options. RFC 8340 documents this usage as pyang -f tree ... <module>.yang.

Learn more

Community Discussion

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