Page MenuHomeVyOS Platform

Show vpn ipsec sa show unexpected prefix 'B' in packets
In progress, Requires assessmentPublicBUG


Cosmetic bug
show vpn ipsec sa shows unexpected prefix B in packets

[email protected]:~$ show vpn ipsec sa
Connection                 State    Uptime    Bytes In/Out    Packets In/Out    Remote address    Remote ID    Proposal
-------------------------  -------  --------  --------------  ----------------  ----------------  -----------  ------------------------
peer_192-0-2-2_tunnel_0    up       21m20s    420B/420B       5B/5B       AES_GCM_16_256/MODP_2048

It seems filesize.size if wrong option for packets

Could be fixed with replace

Or suggestion from @zsdc

if sa_packets_in and sa_packets_out:
    if int(sa_packets_in.decode()) < 1000:
        packets_in = sa_packets_in
        packets_in = filesize.size(int(sa_packets_in.decode()),
    if int(sa_packets_out.decode()) < 1000:
        packets_out = sa_packets_out
        packets_out = filesize.size(int(
    sa_out_packets = f'{packets_in}/{packets_out}'


Difficulty level
Easy (less than an hour)
VyOS 1.4-rolling-202207111030
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Cosmetic issue (typos etc.)