QuestionQ320

Using APIs

Question Image

Refer to the exhibit. An engineer must configure an interface called GigabitEthernet3 with an IP address on several RESTCONF-enabled Cisco IOS XE devices. Which code snippet must be inserted in the blank to fulfill this requirement?

  • A {item["name"]}'
  • B {item["name"]}/ip/address/primary'
  • C {item["name"]}/ip/address
  • D {item["name"]} /ip
Explanation

In the Cisco IOS XE native YANG hierarchy, a GigabitEthernet interface is selected by its name list key, and its IPv4 address configuration is represented by the ip/address/primary resource. Posting the address and mask payload to that resource configures the interface’s primary IPv4 address.

Learn more

Community Discussion

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