Skip to content

Commit

Permalink
Added graceful restart
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Jun 14, 2022
1 parent 091ced5 commit f4a0c82
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-bgp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,34 @@ module sonic-events-bgp {
uses evtcmn:sonic-events-cmn;
}
container bgp-restart {
oc-alarm-types:MINOR
description "
Declares an event for BGP state for a neighbor IP going up/down.;

leaf is-all {
type boolean;
description "true - if restart is for all neighbors";
}

leaf ip {
type inet:ip-address;
description "IP of neighbor, if restart is for a neighbor";
}

leaf status {
type enumeration {
enum "up";
enum "down";

}
description "Provides the status as up (true) or down (false)";
}

uses evtcmn:sonic-events-cmn;
}

container notification {
oc-alarm-types:MAJOR

Expand Down Expand Up @@ -78,6 +106,7 @@ module sonic-events-bgp {
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 f4a0c82

Please sign in to comment.