Skip to content

Commit

Permalink
updates per review
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Jun 7, 2022
1 parent bb842ad commit bfa0b2c
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions src/sonic-yang-models/yang-events/sonic-events-bgp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module sonic-events-bgp {
oc-alarm-types:MINOR

description "
Declares an event for BGP state for a neighbor IP
The status says up or down";
Declares an event for BGP state for a neighbor IP going up.
Going down is reported via notification;
leaf ip {
type inet:ip-address;
Expand All @@ -39,21 +39,44 @@ module sonic-events-bgp {
leaf status {
type enumeration {
enum "up";
enum "down";
}
description "Provides the status as up (true) or down (false)";
}
uses evtcmn:sonic-events-cmn;
}
container bgp-hold-timer {
container notification {
oc-alarm-types:MAJOR
description "
Declares an event for BGP hold timer expiry.
This event does not have any other parameter.
Hence source + tag identifies an event";
Reports an notification.
The error codes as per IANA.
The other params are as in the message";
leaf major-code {
type uint8;
description "Major IANA error code; [RFC4271][RFC7313]";
}
leaf minor-code {
type uint8;
description "Minor IANA error code; [RFC4271][RFC7313]";
}
leaf ip {
type inet:ip-address;
description "IP of neighbor associated with this notification";
}
leaf ASN {
type uint32;
description "ASN number from the notification";
}
leaf is-sent {
type boolean;
description "true - if this notification was for sent messages; false if it was for received.";
uses evtcmn:sonic-events-cmn;
}
Expand Down

0 comments on commit bfa0b2c

Please sign in to comment.