During a change window an engineer must send a RESTCONF request that adds a loopback interface to an IOS XE router. The payload must follow the device's YANG model, and YANG Suite is the approved tool. Which YANG Suite workflow helps build the correctly structured JSON instance?
Select an answer to reveal the explanation.
Short Explanation
YANG Suite exposes the model tree so you can build a payload with the model's structure instead of guessing it. Dragging nodes into the editor helps match the required nesting, but you still need to check that the payload has the required values and matches the device's model and RESTCONF resource.
Full Explanation
The RESTCONF page’s schema tree exposes the selected YANG module’s hierarchy and lets the engineer insert containers and leaves directly into the payload editor. That produces an instance whose nesting and field placement reflect the model, reducing errors when constructing the JSON for the loopback. Manually composing JSON after inspecting the module can be a reasonable workflow, but it omits the requested tree-to-editor construction step and leaves structural accuracy dependent on the engineer. Retrieving the interface collection and editing its response is also a familiar way to reuse existing configuration as a template; however, a collection GET representation is not necessarily the body expected when creating a new list entry. Posting that collection back can use the wrong resource-level shape, even if the added entry’s fields are modeled. The NETCONF editor can help create a model-aware XML instance, and a YANG-aware conversion is safer than generic text conversion, but it still uses the NETCONF workflow rather than the RESTCONF page’s JSON payload editor. Exam caveat: distinguish a model-valid instance from a request that uses the correct RESTCONF resource and operation; valid fields alone do not make a collection response a valid create body. Practical check: inspect the generated JSON against the module’s list key and nesting, then confirm the RESTCONF endpoint and method in YANG Suite before sending.