aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/bfd/bfd.api
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-08-09 00:03:17 +0000
committerNeale Ranns <neale@graphiant.com>2022-08-10 00:18:05 +0000
commit5c7e579f77833537e27a265295773378835d4500 (patch)
treec789dbd303fff97988bba8f7073d65643efea656 /src/vnet/bfd/bfd.api
parent0c50dbb7679039b02d4057fc6c45c87d96f8e7aa (diff)
bfd: Express node stats using the .api file
Type: improvement This method allows the assignment of a severity to the error. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Id1a414a88018390d03bd6b16bd048a98903bab5a
Diffstat (limited to 'src/vnet/bfd/bfd.api')
-rw-r--r--src/vnet/bfd/bfd.api58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/vnet/bfd/bfd.api b/src/vnet/bfd/bfd.api
index 3957a94f6a6..f573bc5309a 100644
--- a/src/vnet/bfd/bfd.api
+++ b/src/vnet/bfd/bfd.api
@@ -359,6 +359,64 @@ autoreply define bfd_udp_auth_deactivate
bool is_delayed;
};
+counters bfd_udp {
+ none {
+ severity info;
+ type counter64;
+ units "packets";
+ description "OK";
+ };
+ no_session {
+ severity error;
+ type counter64;
+ units "packets";
+ description "no-session";
+ };
+ bad {
+ severity error;
+ type counter64;
+ units "packets";
+ description "bad packet";
+ };
+ length {
+ severity error;
+ type counter64;
+ units "packets";
+ description "too short";
+ };
+ failed_verification {
+ severity error;
+ type counter64;
+ units "packets";
+ description "failed-verification";
+ };
+ src_mismatch {
+ severity error;
+ type counter64;
+ units "packets";
+ description "src-mismatch";
+ };
+ dst_mismatch {
+ severity error;
+ type counter64;
+ units "packets";
+ description "dst-mismatch";
+ };
+ ttl {
+ severity error;
+ type counter64;
+ units "packets";
+ description "ttl";
+ };
+};
+
+paths {
+ "/err/bfd-udp4-input" "bfd";
+ "/err/bfd-udp6-input" "bfd";
+ "/err/bfd-udp4-echo-input" "bfd";
+ "/err/bfd-udp6-echo-input" "bfd";
+};
+
/*
* Local Variables:
* eval: (c-set-style "gnu")