X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmap%2Fmap.api;h=dfe255bf3492c9ed763cabccc1866127127d2c1d;hb=148c7b768;hp=0ae1901e07a929825283e1ce043461228cc29da2;hpb=f5db3711b28db4e364ac01be8b124dd24d573782;p=vpp.git diff --git a/src/plugins/map/map.api b/src/plugins/map/map.api index 0ae1901e07a..dfe255bf349 100644 --- a/src/plugins/map/map.api +++ b/src/plugins/map/map.api @@ -112,7 +112,7 @@ define map_domains_get_reply define map_domain_dump { - option deprecated="v20.12"; + option deprecated; u32 client_index; u32 context; }; @@ -162,7 +162,7 @@ define map_rule_details /** \brief Enable or disable a MAP interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param sw_if_index - + @param sw_if_index - @param is_enable - 0=disable, 1=enable interface @param is_translation - 0=encapsulation, 1=translation */ @@ -349,3 +349,117 @@ define map_param_get_reply bool tc_copy; u8 tc_class; }; + +/* + * MAP Error counters/messages + */ +counters map { + none { + severity info; + type counter64; + units "packets"; + description "valid MAP packets"; + }; + bad_protocol { + severity error; + type counter64; + units "packets"; + description "bad protocol"; + }; + sec_check { + severity error; + type counter64; + units "packets"; + description "security check failed"; + }; + encap_sec_check { + severity error; + type counter64; + units "packets"; + description "encap security check failed"; + }; + decap_sec_check { + severity error; + type counter64; + units "packets"; + description "decap security check failed"; + }; + icmp { + severity error; + type counter64; + units "packets"; + description "unable to translate ICMP"; + }; + icmp_relay { + severity error; + type counter64; + units "packets"; + description "unable to relay ICMP"; + }; + unknown { + severity error; + type counter64; + units "packets"; + description "unknown"; + }; + no_binding { + severity error; + type counter64; + units "packets"; + description "no binding"; + }; + no_domain { + severity error; + type counter64; + units "packets"; + description "no domain"; + }; + fragmented { + severity error; + type counter64; + units "packets"; + description "packet is a fragment"; + }; + fragment_memory { + severity error; + type counter64; + units "packets"; + description "could not cache fragment"; + }; + fragment_malformed { + severity error; + type counter64; + units "packets"; + description "fragment has unexpected format"; + }; + fragment_dropped { + severity error; + type counter64; + units "packets"; + description "dropped cached fragment"; + }; + malformed { + severity error; + type counter64; + units "packets"; + description "malformed packet"; + }; + df_set { + severity error; + type counter64; + units "packets"; + description "can't fragment, DF set"; + }; + time_exceeded { + severity error; + type counter64; + units "packets"; + description "time exceeded"; + }; +}; +paths { + "/err/ip4-map" "map"; + "/err/ip6-map" "map"; + "/err/ip4-t-map" "map"; + "/err/ip6-t-map" "map"; +};