200-901 Question 165
Single answerYou are using RESTCONF to retrieve configuration data from a network device. The response from the device includes the following JSON output:
{ "ietf-interfaces:interface": [ { "name": "GigabitEthernet1", "enabled": true, "ipv4": { "address": [ { "ip": "192.168.1.1", "netmask": "255.255.255.0" } ] } } ] }
What does the 'enabled' field indicate about the interface 'GigabitEthernet1'?
- A
The interface is operationally up and passing traffic.
- B
The interface is administratively enabled but may not be operationally up.
- C
The interface is configured with IPv4 and IPv6 addresses.
- D
The interface is in a shutdown state.
Show answer and explanation
Correct answer: B
Explanation
The 'enabled' field in the RESTCONF response represents the administrative state of the interface. When set to 'true', it means the interface is administratively enabled, but it does not guarantee that the interface is operationally up and passing traffic. Operational status would require additional fields, such as 'oper-status', to confirm.
- A. Incorrect.
This is incorrect because the 'enabled' field does not indicate the interface's operational status; it refers to the administrative state.
- B. Correct.
This is correct because the 'enabled' field in RESTCONF or NETCONF JSON response refers to the administrative state of the interface, meaning it is enabled for use but may not necessarily be operationally up.
- C. Incorrect.
This is incorrect because the 'enabled' field does not relate to IP address configuration; it indicates the administrative state of the interface.
- D. Incorrect.
This is incorrect because if the 'enabled' field is set to true, the interface is not in a shutdown state.