QuestionQ195

Using APIs

Question Image

Refer to the exhibit. The displayed information was obtained by using RESTCONF and querying the URI /restconf/data/native/ip/route.

Which RESTCONF call and JSON code are used to add a new IP route to the 172.30.200.0/24 network through the GigabitEthernet2 interface?

Choose two
  • A
  • B
  • C
  • D
  • E
  • F
Explanation

A new static-route entry is created under the ip-route-interface-forwarding-list in the Cisco IOS XE native route model. The entry must specify prefix 172.30.200.0, mask 255.255.255.0, forwarding interface GigabitEthernet2, and next hop 10.255.255.2. RESTCONF uses POST on a data resource to create a child configuration resource; the JSON payload must use the model-qualified Cisco-IOS-XE-native:route structure containing that route-list entry.

Learn more

Community Discussion

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