forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request snabbco#947 from dpino/decouple-alarms-declaration
Decouple alarms declaration
- Loading branch information
Showing
5 changed files
with
60 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module(..., package.seeall) | ||
|
||
local alarms = require("lib.yang.alarms") | ||
|
||
alarms.declare_alarm { | ||
[{resource='nic-v4', alarm_type_id='arp-resolution', alarm_type_qualifier=''}] = { | ||
perceived_severity = 'critical', | ||
alarm_text = | ||
'Make sure you can resolve external-interface.next-hop.ip address '.. | ||
'manually. If it cannot be resolved, consider setting the MAC '.. | ||
'address of the next-hop directly. To do it so, set '.. | ||
'external-interface.next-hop.mac to the value of the MAC address.', | ||
}, | ||
} | ||
|
||
alarms.declare_alarm { | ||
[{resource='nic-v6', alarm_type_id='ndp-resolution', alarm_type_qualifier=''}] = { | ||
perceived_severity = 'critical', | ||
alarm_text = | ||
'Make sure you can resolve internal-interface.next-hop.ip address '.. | ||
'manually. If it cannot be resolved, consider setting the MAC '.. | ||
'address of the next-hop directly. To do it so, set '.. | ||
'internal-interface.next-hop.mac to the value of the MAC address.', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters