QuestionQ162

Using APIs

Question Image

Refer to the exhibit. Interface Loopback 1 must be created with IP address 10.30.0.1/24 on a Cisco IOS XE device by using RESTCONF. The schema defined in the exhibit must be used.

Which body and URI should be used for this operation?

  • A
  • B
  • C
  • D
Explanation

In the Cisco IOS XE native YANG model, interface is the parent container and Loopback is a list beneath it, so a new Loopback entry is created by POSTing the Loopback list payload to /restconf/data/Cisco-IOS-XE-native:native/interface. The IPv4 primary address mask is expressed as a dotted-decimal subnet mask, making the correct value for /24 255.255.255.0.

Learn more

Community Discussion

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