A network engineer is creating a Python script using the Cisco IOS XE RESTCONF API to configure a loopback interface. The script sends a PUT request to the URI /restconf/data/Cisco-IOS-XE-native:native/interface/Loopback=100 with a JSON body that includes the IP address. The API returns a 201 Created status, but the loopback interface does not appear in the running configuration. What is the most likely issue?
Trap 1: The RESTCONF API returned an error but the script ignored it
201 Created indicates success.
Trap 2: The loopback interface number is incorrect in the URI
The URI syntax is correct.
Trap 3: The script is not authenticated properly
Authentication errors would return 401 or 403.
- A
The RESTCONF API returned an error but the script ignored it
Why wrong: 201 Created indicates success.
- B
The loopback interface number is incorrect in the URI
Why wrong: The URI syntax is correct.
- C
The script is not authenticated properly
Why wrong: Authentication errors would return 401 or 403.
- D
The PUT request should be a POST request to create a new resource
POST is used to create a new resource; PUT replaces an existing one.