Configuring the Network Integrity YANG Processors

The procedure below assumes you have specified the YANG directory in the Design Studio preferences for Network Integrity. For more information on setting preferences for Network Integrity, see Configuring Network Integrity Preferences. The YANG files present in the folder should be dependency satisfied. All YANG files from the given folder are attempted to load.

To configure YANG processors:

  1. Open the YANG processor which loads all the YANG files from the directory specified in Design Studio preferences for Network Integrity.

    It is recommended to create a folder containing only the required YANG files for device discovery and point to that folder in the preferences.

  2. Select the protocol: RESTCONF or NETCONF.

  3. Browse the YANG tree and select the desired nodes. When you select a node, the Name, Path, and Description (if available) appear. The displayed path is a shortened version.

  4. Click the Add button.

    You cannot add modules, choice-enabled nodes, or case nodes directly. A choice node contains case nodes, and a case node contains actual selectable nodes. To add a valid node:

    • Expand the choice node, then the case node and select a node underneath

      The Add button is activated only when a valid node is selected. Design Studio adds selected paths to the YANG Table. The table shows the node name, fully qualified path with namespaces, parent container name, and shortened path.

    Note:

    If you add a parent node, all child data in that hierarchy is included automatically. In this case, you need not add the child nodes separately.
  5. To remove items from the table, select the row(s) and click Remove.

  6. To locate an added item in the YANG tree, right-click the row and click Show in YANG Tree.

    The tree expands to the appropriate level and highlights the selected node.

  7. If the YANG directory includes new files, click the Load YANG button and select the new YANG files.

    A new window appears with YANG files not already loaded into the processor tree. Use the text box at the top to filter by file name.

  8. After selecting the files, click OK.

    The tree updates with the newly loaded YANGs.

  9. To refresh the tree with the current YANG directory, re-open the processor.

    This action reloads the YANG tree from the directory.

  10. Save the processor.

    A YANG processor must contain at least one path. When built, it outputs a fully formed RPC or REST request.