From 122f76f5ac762c4f47b3c9d21a1a3d34476dd321 Mon Sep 17 00:00:00 2001 From: cnadimpalli Date: Wed, 31 Jul 2024 14:57:47 +0530 Subject: [PATCH 1/2] updated lfm discovery state enums and trigger msg --- juniper_official/oam/ethernet-oam-lfm.rule | 30 +++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/juniper_official/oam/ethernet-oam-lfm.rule b/juniper_official/oam/ethernet-oam-lfm.rule index 12d3f2381..8c849404b 100644 --- a/juniper_official/oam/ethernet-oam-lfm.rule +++ b/juniper_official/oam/ethernet-oam-lfm.rule @@ -27,10 +27,28 @@ healthbot { } type string; description "Discovery state for a given interface"; - enumerate "Passive Wait" as 0; - enumerate "Send Any" as 1; - enumerate "Send Local Remote" as 2; - enumerate "Send Local Remote Ok" as 3; + enumerate "Fault" as -1 + enumerate "Active Send Local" as 3 + enumerate "Passive Wait" as 4 + enumerate "Send Local Remote" as 5 + enumerate "Send Local Remote OK" as 6 + enumerate "Send Any" 7 + enumerate "Lost Link Timer Expired" as -2 + enumerate "Link Down" as 0 + enumerate "Link Up Active" as 1 + enumerate "Link Up Passive" as 2 + enumerate "Info PDU Received" as 8 + enumerate "Info PDU Rcvd & Loc Sat" as 9 + enumerate "Info PDU Rcvd & Loc NotSat" as 10 + enumerate "Info PDU Rcvd & Rem Sat" as 11 + enumerate "Info PDU Rcvd & Rem NotSat" 12 + enumerate "No Action" as 13 + enumerate "Restart Discovery" as 14 + enumerate "Active Send Local entry" as 15 + enumerate "Passive Wait entry" as 16 + enumerate "Send Local Remote entry" as 17 + enumerate "Send Local Remote OK entry" as 18 + enumerate "Send any entry" as 19 } field lfm-status { sensor link-fault-management-information { @@ -67,7 +85,7 @@ healthbot { then { status { color green; - message "$lfm-interface-name LFM discovery-state: $lfm-discovery-state; lfm-status: $lfm-status; lfm-peer-address: $lfm-peer-address"; + message "$lfm-interface-name LFM discovery-state: $lfm-discovery-state; lfm-status: $lfm-status"; } } } @@ -75,7 +93,7 @@ healthbot { then { status { color red; - message "$lfm-interface-name LFM discovery-state: $lfm-discovery-state; lfm-status: $lfm-status; lfm-peer-address: $lfm-peer-address"; + message "$lfm-interface-name LFM discovery-state: $lfm-discovery-state; lfm-status: $lfm-status"; } } } From 95987490e28666355bb5e25c608fe563b687edfc Mon Sep 17 00:00:00 2001 From: cnadimpalli Date: Wed, 31 Jul 2024 15:13:53 +0530 Subject: [PATCH 2/2] updated lfm discovery state enums and trigger msg --- juniper_official/oam/ethernet-oam-lfm.rule | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/juniper_official/oam/ethernet-oam-lfm.rule b/juniper_official/oam/ethernet-oam-lfm.rule index 8c849404b..d117e2e2a 100644 --- a/juniper_official/oam/ethernet-oam-lfm.rule +++ b/juniper_official/oam/ethernet-oam-lfm.rule @@ -27,28 +27,28 @@ healthbot { } type string; description "Discovery state for a given interface"; - enumerate "Fault" as -1 - enumerate "Active Send Local" as 3 - enumerate "Passive Wait" as 4 - enumerate "Send Local Remote" as 5 - enumerate "Send Local Remote OK" as 6 - enumerate "Send Any" 7 - enumerate "Lost Link Timer Expired" as -2 - enumerate "Link Down" as 0 - enumerate "Link Up Active" as 1 - enumerate "Link Up Passive" as 2 - enumerate "Info PDU Received" as 8 - enumerate "Info PDU Rcvd & Loc Sat" as 9 - enumerate "Info PDU Rcvd & Loc NotSat" as 10 - enumerate "Info PDU Rcvd & Rem Sat" as 11 - enumerate "Info PDU Rcvd & Rem NotSat" 12 - enumerate "No Action" as 13 - enumerate "Restart Discovery" as 14 - enumerate "Active Send Local entry" as 15 - enumerate "Passive Wait entry" as 16 - enumerate "Send Local Remote entry" as 17 - enumerate "Send Local Remote OK entry" as 18 - enumerate "Send any entry" as 19 + enumerate "Fault" as -1; + enumerate "Active Send Local" as 3; + enumerate "Passive Wait" as 4; + enumerate "Send Local Remote" as 5; + enumerate "Send Local Remote OK" as 6; + enumerate "Send Any" as 7; + enumerate "Lost Link Timer Expired" as -2; + enumerate "Link Down" as 0; + enumerate "Link Up Active" as 1; + enumerate "Link Up Passive" as 2; + enumerate "Info PDU Received" as 8; + enumerate "Info PDU Rcvd & Loc Sat" as 9; + enumerate "Info PDU Rcvd & Loc NotSat" as 10; + enumerate "Info PDU Rcvd & Rem Sat" as 11; + enumerate "Info PDU Rcvd & Rem NotSat" as 12; + enumerate "No Action" as 13; + enumerate "Restart Discovery" as 14; + enumerate "Active Send Local entry" as 15; + enumerate "Passive Wait entry" as 16; + enumerate "Send Local Remote entry" as 17; + enumerate "Send Local Remote OK entry" as 18; + enumerate "Send any entry" as 19; } field lfm-status { sensor link-fault-management-information {