From: Enke Chen Date: Sun, 20 Oct 2024 19:25:46 +0000 (-0700) Subject: bgpd: allow value 0 in aigp-metric setting X-Git-Tag: docker/10.1.2~35^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c09f9794833c4737b4ae95ea6fbe16c4ba4aeafb;p=mirror%2Ffrr.git bgpd: allow value 0 in aigp-metric setting The value of 0 is accepted from peers, and can also be set by the route-map "set aigp-metric igp-metric". For coonsistency, it should be allowed in "set aigp-metric " as well. Signed-off-by: Enke Chen (cherry picked from commit e07f38a43f0b176fcfb96403db71291c04f76cfb) --- diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index fcc2178dca..aab04cb277 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -7140,7 +7140,7 @@ DEFUN_YANG (no_set_atomic_aggregate, DEFPY_YANG (set_aigp_metric, set_aigp_metric_cmd, - "set aigp-metric $aigp_metric", + "set aigp-metric $aigp_metric", SET_STR "BGP AIGP attribute (AIGP Metric TLV)\n" "AIGP Metric value from IGP protocol\n" @@ -7160,7 +7160,7 @@ DEFPY_YANG (set_aigp_metric, DEFPY_YANG (no_set_aigp_metric, no_set_aigp_metric_cmd, - "no set aigp-metric []", + "no set aigp-metric []", NO_STR SET_STR "BGP AIGP attribute (AIGP Metric TLV)\n" diff --git a/doc/user/routemap.rst b/doc/user/routemap.rst index 1d2f4e352f..fbf7b8637e 100644 --- a/doc/user/routemap.rst +++ b/doc/user/routemap.rst @@ -320,7 +320,7 @@ Route Map Set Command Set the maximum meric for the route. -.. clicmd:: set aigp-metric +.. clicmd:: set aigp-metric Set the BGP attribute AIGP to a specific value. If ``igp-metric`` is specified, then the value is taken from the IGP protocol, otherwise an arbitrary value.