From: Don Slice Date: Tue, 6 Jun 2017 16:29:30 +0000 (-0700) Subject: bgpd: set bgp label-index range to (0-1048560) X-Git-Tag: reindent-master-before~78^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8b81993eb3c1236baa82e2388f4c85183df5eb33;p=matthieu%2Ffrr.git bgpd: set bgp label-index range to (0-1048560) Based on suggestions made in the FRR technical meeting, making the label-index range 2^20-16 for the max label size minus the reserved labels. Ticket: CM-16513 Signed-off-by: Don Slice --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index fd5e7f2633..0e27e47a6c 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5017,7 +5017,7 @@ DEFUN (bgp_network_mask_natural_backdoor, DEFUN (bgp_network_label_index, bgp_network_label_index_cmd, - "network A.B.C.D/M label-index (0-471788)", + "network A.B.C.D/M label-index (0-1048560)", "Specify a network to announce via BGP\n" "IP prefix /, e.g., 35.0.0.0/8\n" "Label index to associate with the prefix\n" @@ -5032,7 +5032,7 @@ DEFUN (bgp_network_label_index, DEFUN (bgp_network_label_index_route_map, bgp_network_label_index_route_map_cmd, - "network A.B.C.D/M label-index (0-471788) route-map WORD", + "network A.B.C.D/M label-index (0-1048560) route-map WORD", "Specify a network to announce via BGP\n" "IP prefix\n" "Label index to associate with the prefix\n" @@ -5117,7 +5117,7 @@ DEFUN (no_bgp_network_mask_natural, ALIAS (no_bgp_network, no_bgp_network_label_index_cmd, - "no network A.B.C.D/M label-index (0-471788)", + "no network A.B.C.D/M label-index (0-1048560)", NO_STR "Specify a network to announce via BGP\n" "IP prefix /, e.g., 35.0.0.0/8\n" @@ -5126,7 +5126,7 @@ ALIAS (no_bgp_network, ALIAS (no_bgp_network, no_bgp_network_label_index_route_map_cmd, - "no network A.B.C.D/M label-index (0-471788) route-map WORD", + "no network A.B.C.D/M label-index (0-1048560) route-map WORD", NO_STR "Specify a network to announce via BGP\n" "IP prefix\n" @@ -5164,7 +5164,7 @@ DEFUN (ipv6_bgp_network_route_map, DEFUN (ipv6_bgp_network_label_index, ipv6_bgp_network_label_index_cmd, - "network X:X::X:X/M label-index (0-471788)", + "network X:X::X:X/M label-index (0-1048560)", "Specify a network to announce via BGP\n" "IPv6 prefix /\n" "Label index to associate with the prefix\n" @@ -5179,7 +5179,7 @@ DEFUN (ipv6_bgp_network_label_index, DEFUN (ipv6_bgp_network_label_index_route_map, ipv6_bgp_network_label_index_route_map_cmd, - "network X:X::X:X/M label-index (0-471788) route-map WORD", + "network X:X::X:X/M label-index (0-1048560) route-map WORD", "Specify a network to announce via BGP\n" "IPv6 prefix\n" "Label index to associate with the prefix\n" @@ -5209,7 +5209,7 @@ DEFUN (no_ipv6_bgp_network, ALIAS (no_ipv6_bgp_network, no_ipv6_bgp_network_label_index_cmd, - "no network X:X::X:X/M label-index (0-471788)", + "no network X:X::X:X/M label-index (0-1048560)", NO_STR "Specify a network to announce via BGP\n" "IPv6 prefix /\n" @@ -5218,7 +5218,7 @@ ALIAS (no_ipv6_bgp_network, ALIAS (no_ipv6_bgp_network, no_ipv6_bgp_network_label_index_route_map_cmd, - "no network X:X::X:X/M label-index (0-471788) route-map WORD", + "no network X:X::X:X/M label-index (0-1048560) route-map WORD", NO_STR "Specify a network to announce via BGP\n" "IPv6 prefix\n" diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index f3f71253b1..6c6b622626 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -3691,7 +3691,7 @@ DEFUN (no_set_weight, DEFUN (set_label_index, set_label_index_cmd, - "set label-index (0-471788)", + "set label-index (0-1048560)", SET_STR "Label index to associate with the prefix\n" "Label index value\n") @@ -3703,7 +3703,7 @@ DEFUN (set_label_index, DEFUN (no_set_label_index, no_set_label_index_cmd, - "no set label-index [(0-471788)]", + "no set label-index [(0-1048560)]", NO_STR SET_STR "Label index to associate with the prefix\n"