frrouting/python
Philippe Guibert c22a5df09d *: fix add unsigned long support to RANGE token CLI
The original problem came with a DEFPY command that uses RANGE token
with a big value. To illustrate, tha passed argument is not the expected
one on i386 platforms.

> # config:
> router bgp 65003 vrf Vrf20
>  bgp router-id 192.0.2.3
>  sid vpn per-vrf export 4294442578
> # show running-config
> router bgp 65003 vrf Vrf20
>  bgp router-id 192.0.2.3
>  sid vpn per-vrf export 2147483647

The 'long' size on an i386 platform is 32 bits, which differs from most
of other platforms (64 bits). Propose to extend the RANGE to int64_t
values by converting the RANGE from long to int64_t.
Add the necessary changes on places where RANGE is used and where
internal attribute type differs from passed argument.

Fixes: 5578a14d94 ("python: clidef.py")

Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-10-27 10:56:27 +01:00
..
clippy build: hppa is weird 2024-05-02 23:03:08 +02:00
callgraph-dot.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
clidef.py *: fix add unsigned long support to RANGE token CLI 2025-10-27 10:56:27 +01:00
firstheader.py build: fix a few python string escape warnings 2024-07-23 10:23:50 -07:00
makefile.py *: clear up copyright/SPDX on NetDEF "owned" files 2025-05-24 21:28:09 +02:00
makevars.py *: clear up copyright/SPDX on NetDEF "owned" files 2025-05-24 21:28:09 +02:00
runtests.py *: clear up copyright/SPDX on NetDEF "owned" files 2025-05-24 21:28:09 +02:00
test_xrelfo.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
tiabwarfo.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
tsexpand.py python: add tool to expand typesafe definitions 2024-04-29 17:37:49 +02:00
xref2vtysh.py lib: logging: split up files for conversion to nb 2025-06-24 16:19:00 -04:00
xrefstructs.json python/xrelfo: cross-platform xrefstructs.json 2021-02-23 16:56:58 +01:00
xrelfo.py lib/clippy: pointer offsets are signed 2025-05-11 16:40:53 +02:00