summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorEnke Chen <enchen@paloaltonetworks.com>2024-10-20 12:25:46 -0700
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-10-21 08:35:33 +0000
commitfcf0b86851946fd3dbfca600b325c62031160bae (patch)
tree48e70c90424047652edd72dd17e80942c4ffcf13 /bgpd
parentd92fb2649ebdcf2c90a429d10550cfbb019be4c5 (diff)
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 <value>" as well. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com> (cherry picked from commit e07f38a43f0b176fcfb96403db71291c04f76cfb)
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_routemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 34f8c7fdb5..fe94b961a3 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -7122,7 +7122,7 @@ DEFUN_YANG (no_set_atomic_aggregate,
DEFPY_YANG (set_aigp_metric,
set_aigp_metric_cmd,
- "set aigp-metric <igp-metric|(1-4294967295)>$aigp_metric",
+ "set aigp-metric <igp-metric|(0-4294967295)>$aigp_metric",
SET_STR
"BGP AIGP attribute (AIGP Metric TLV)\n"
"AIGP Metric value from IGP protocol\n"
@@ -7142,7 +7142,7 @@ DEFPY_YANG (set_aigp_metric,
DEFPY_YANG (no_set_aigp_metric,
no_set_aigp_metric_cmd,
- "no set aigp-metric [<igp-metric|(1-4294967295)>]",
+ "no set aigp-metric [<igp-metric|(0-4294967295)>]",
NO_STR
SET_STR
"BGP AIGP attribute (AIGP Metric TLV)\n"