diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-21 08:18:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-21 08:18:17 +0300 |
| commit | 2f84a26634ec07ff677f13a9b8e915aef06149ec (patch) | |
| tree | 07de3d65c4be6682d33f61d20e344f76e8a90210 | |
| parent | 5d5da525b9d34044bbdf4da784132d6b5480b5da (diff) | |
| parent | e07f38a43f0b176fcfb96403db71291c04f76cfb (diff) | |
Merge pull request #17169 from enkechen-panw/aigp-fix4
bgpd: allow value 0 in aigp-metric setting
| -rw-r--r-- | bgpd/bgp_routemap.c | 4 | ||||
| -rw-r--r-- | doc/user/routemap.rst | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 10428797a3..8666831c7f 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -7255,7 +7255,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" @@ -7275,7 +7275,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" diff --git a/doc/user/routemap.rst b/doc/user/routemap.rst index 60e458a28a..02d674dff0 100644 --- a/doc/user/routemap.rst +++ b/doc/user/routemap.rst @@ -331,7 +331,7 @@ Route Map Set Command Set the maximum metric for the route. -.. clicmd:: set aigp-metric <igp-metric|(1-4294967295)> +.. clicmd:: set aigp-metric <igp-metric|(0-4294967295)> 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. |
