Skip to content

Commit

Permalink
Merge pull request sonic-net#231 from BRCM-SONIC/if_down_reason_updates
Browse files Browse the repository at this point in the history
Interface Down Reason - updated REST and DB schema sections.
  • Loading branch information
Prasanth-KV authored Jun 25, 2021
2 parents 5b037ec + 3430045 commit 5bebaed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions system/Interface_Down_Reason.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ Example response data:
GET /restconf/data/openconfig-interfaces:interfaces/interface={name}/openconfig-if-ethernet:ethernet/state/openconfig-interfaces-ext:reason-events

Example response data:
```
{
"openconfig-interfaces-ext:reason-events": {
"down-reason-event": [
Expand All @@ -382,7 +383,27 @@ Example response data:
]
}
}
```

Example response data for link down scenario:
```
{
"openconfig-interfaces-ext:reason-events": {
"down-reason-event": [
{
"reason-event": {
"reason": "PHY_LINK_DOWN",
"event": "Remote-fault",
"timestamp": "2021-06-07 04:17:13.456626"
}
}
]
}
}
```

The values for reason can be OPER_UP, PHY_LINK_DOWN, ERR_DISABLED or ADMIN_DOWN.
The list of values for event is mentioned in the CLI section.

### 3.6.4 gNMI Support
*Generally this is covered by the YANG specification. This section should also cover objects where on-change and interval based telemetry subscriptions can be configured.*
Expand Down

0 comments on commit 5bebaed

Please sign in to comment.