Page MenuHomeVyOS Platform

Get rate limit for L2TP/PPTP/SSTP/IPoE in raw format
Closed, ResolvedPublicFEATURE REQUEST

Description

Get rate limit for L2TP/PPTP/SSTP/IPoE in raw format.
There is no option rate-limit for --raw format

Current output

# /usr/libexec/vyos/op_mode/accelppp.py show_sessions --protocol pppoe --raw
[
    {
        "ifname": "ppp1",
        "username": "user1",
        "ip": "100.64.202.2",
        "ip6": "",
        "ip6_dp": "",
        "type": "pppoe",
        "state": "active",
        "uptime_raw": "169",
        "calling_sid": "56:ac:80:ed:69:63",
        "called_sid": "c2:ab:18:fc:82:a0",
        "sid": "9620a0d7914d7e7f",
        "comp": "",
        "rx_bytes_raw": "832",
        "tx_bytes_raw": "198",
        "rx_pkts": "14",
        "tx_pkts": "6"
    }
]
# 
# /usr/libexec/vyos/op_mode/accelppp.py show_sessions --protocol pppoe 
ifname | username |      ip      | ip6 | ip6-dp |    calling-sid    | rate-limit  | state  |  uptime  | rx-bytes | tx-bytes 
--------+----------+--------------+-----+--------+-------------------+-------------+--------+----------+----------+----------
 ppp1   | user1    | 100.64.202.2 |     |        | 56:ac:80:ed:69:63 | 10000/10000 | active | 00:02:53 | 832 B    | 198 B
#

Expected "rate_limit": "10000/10000",

# /usr/libexec/vyos/op_mode/accelppp.py show_sessions --protocol pppoe --raw
[
    {
        "ifname": "ppp1",
        "username": "user1",
        "ip": "100.64.202.2",
        "ip6": "",
        "ip6_dp": "",
        "type": "pppoe",
        "rate_limit": "10000/10000",
        "state": "active",
        "uptime_raw": "253",
        "calling_sid": "56:ac:80:ed:69:63",
        "called_sid": "c2:ab:18:fc:82:a0",
        "sid": "9620a0d7914d7e7f",
        "comp": "",
        "rx_bytes_raw": "832",
        "tx_bytes_raw": "198",
        "rx_pkts": "14",
        "tx_pkts": "6"
    }
]

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)