Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/syslog_telemetry_shared' into re…
Browse files Browse the repository at this point in the history
…manava_events
  • Loading branch information
renukamanavalan committed Jun 17, 2022
2 parents 15969a7 + c57de23 commit fcc00ef
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 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 @@ -25,11 +25,10 @@ module sonic-events-bgp {
"SONIC BGP events";

container bgp-state {
oc-alarm-types:MAJOR
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/down.;
leaf ip {
type inet:ip-address;
Expand All @@ -40,20 +39,46 @@ module sonic-events-bgp {
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 fcc00ef

Please sign in to comment.