Skip to content

Commit

Permalink
Added severity
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed May 26, 2022
1 parent 30c5108 commit b95e5d9
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
10 changes: 10 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 @@ -7,6 +7,10 @@ module sonic-events-bgp {
prefix evtcmn;
}

import openconfig-alarm-types {
prefix oc-alarm-types;
}

revision 2022-12-01 {
description "BGP alert events.";
}
Expand All @@ -21,6 +25,8 @@ module sonic-events-bgp {
"SONIC BGP events";

container bgp-state {
oc-alarm-types:MAJOR

description "
Declares an event for BGP state for a neighbor IP
The status says up or down";
Expand All @@ -42,6 +48,8 @@ module sonic-events-bgp {
}

container bgp-hold-timer {
oc-alarm-types:MAJOR

description "
Declares an event for BGP hold timer expiry.
This event does not have any other parameter.
Expand All @@ -51,6 +59,8 @@ module sonic-events-bgp {
}

container zebra-no-buff {
oc-alarm-types:MAJOR

description "
Declares an event for zebra running out of buffer.
This event does not have any other parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module sonic-events-dhcp-relay {
namespace "http://github.com/sonic-net/sonic-events-dhcp-relay";
yang-version 1.1;

import openconfig-alarm-types {
prefix oc-alarm-types;
}

import sonic-events-common {
prefix evtcmn;
}
Expand All @@ -20,6 +24,8 @@ module sonic-events-dhcp-relay {
"SONIC dhcp-relay events";

container dhcp-relay-discard {
oc-alarm-types:MAJOR

description "
Declares an event for dhcp-relay discarding packet on an
interface due to missing IP address assigned.
Expand All @@ -44,6 +50,8 @@ module sonic-events-dhcp-relay {
}

container dhcp-relay-disparity {
oc-alarm-types:MAJOR

description "
Declares an event for disparity detected in
DHCP Relay behavior by dhcpmon.
Expand Down
20 changes: 20 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-host.yang
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module events-host {
namespace "http://github.com/sonic-net/sonic-events-host";
yang-version 1.1;

import openconfig-alarm-types {
prefix oc-alarm-types;
}

import sonic-events-common {
prefix evtcmn;
}
Expand All @@ -10,6 +14,8 @@ module events-host {
}

container disk-usage {
oc-alarm-types:MINOR

description "
Declares an event for disk usage crossing set limit
The parameters describe the usage & limit set.";
Expand All @@ -26,6 +32,8 @@ module events-host {
}

container memory-usage {
oc-alarm-types:MINOR

description "
Declares an event for memory usage crossing set limit
The parameters describe the usage & limit set.";
Expand All @@ -36,6 +44,8 @@ module events-host {
}

container event-sshd {
oc-alarm-types:MINOR

description "
Declares an event reported by sshd.
The fail type declares the type of failure.
Expand All @@ -53,6 +63,8 @@ module events-host {
}

container event-disk {
oc-alarm-types:MINOR

description "
Declares an event reported by disk check.
The fail type declares the type of failure.
Expand All @@ -69,6 +81,8 @@ module events-host {
}

container event-kernel {
oc-alarm-types:MINOR

description "
Declares an event reported by kernel.
The fail type declares the type of failure.";
Expand All @@ -95,6 +109,8 @@ module events-host {
}

container event-monit-proc {
evtcmn:severity "2"

description "
Declares an event reported by monit for a process
that is not running.
Expand All @@ -119,6 +135,8 @@ module events-host {
}

container event-monit-status {
evtcmn:severity "2"

description "
Declares an event reported by monit for status check
failure for a process
Expand Down Expand Up @@ -149,6 +167,8 @@ module events-host {
}

container event-platform {
evtcmn:severity "2"

description "
Declares an event for platform related failure.
Params:
Expand Down
6 changes: 6 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-pmon.yang
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module sonic-events-pmon {
namespace "http://github.com/sonic-net/sonic-events-pmon";
yang-version 1.1;

import openconfig-alarm-types {
prefix oc-alarm-types;
}

import sonic-events-common {
prefix evtcmn;
}
Expand All @@ -21,6 +25,8 @@ module sonic-events-pmon {


container pmon-exited {
oc-alarm-types:MAJOR

description "
Declares an event reportes by pmon for an unexpected exit.
The exited entity is the only param";
Expand Down
12 changes: 12 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-swss.yang
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module sonic-events-swss {
namespace "http://github.com/sonic-net/sonic-events-swss";
yang-version 1.1;

import openconfig-alarm-types {
prefix oc-alarm-types;
}

import sonic-events-common {
prefix evtcmn;
}
Expand All @@ -20,6 +24,8 @@ module sonic-events-swss {
"SONIC SWSS events";

container redis-generic {
oc-alarm-types:MAJOR

description "
Declares an event for a fatal error encountered by swss.
The asic-index of the failing process is the only param.";
Expand All @@ -34,6 +40,8 @@ module sonic-events-swss {
}

container if-state {
oc-alarm-types:MINOR

description "
Declares an event for i/f flap.
Expand All @@ -57,6 +65,8 @@ module sonic-events-swss {
}

container pfc-storm {
oc-alarm-types:MAJOR

description "
Declares an event for PFC storm.
Expand Down Expand Up @@ -86,6 +96,8 @@ module sonic-events-swss {
}

container chk_crm_threshold {
oc-alarm-types:MAJOR

description "
Declares an event for CRM threshold.";

Expand Down
6 changes: 6 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-syncd.yang
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module sonic-events-syncd {
namespace "http://github.com/sonic-net/sonic-events-syncd";
yang-version 1.1;

import openconfig-alarm-types {
prefix oc-alarm-types;
}

import sonic-events-common {
prefix evtcmn;
}
Expand All @@ -20,6 +24,8 @@ module sonic-events-syncd {
"SONIC syncd events";

container syncd_failure {
oc-alarm-types:MAJOR

description "
Declares an event for all types of syncd failure.
The type of failure and the asic-index of failing syncd are
Expand Down

0 comments on commit b95e5d9

Please sign in to comment.