[pve-devel] [PATCH pve-network 1/5] controllers: fix maximum value for ASN

Shannon Sterz s.sterz at proxmox.com
Mon Mar 10 16:29:58 CET 2025


On Fri Feb 28, 2025 at 3:01 PM CET, Stefan Hanreich wrote:
> ASNs are 32-bit unsigned integers where the maximum value is
> 4294967295.
>
> Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
> ---
>  src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
> index c245ea2..78c9798 100644
> --- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
> +++ b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
> @@ -24,7 +24,7 @@ sub properties {
>  	    type => 'integer',
>  	    description => "autonomous system number",
>  	    minimum => 0,
> -	    maximum => 4294967296
> +	    maximum => 4294967295

just a small nit, it might be nicer to express that as `2**32-1` if
that's an option.

>  	},
>  	peers => {
>  	    description => "peers address list.",





More information about the pve-devel mailing list