diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-23 13:41:13 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-23 14:15:04 +0000 |
commit | 9c81b63a1a42d95e99c6a32ca6e3cb4704231352 (patch) | |
tree | 79196e8413b1645e38076c3fe4186cf2962222e3 /src | |
parent | 7380bf1216399f905fe85ff26eaa0272b9f6dfe0 (diff) | |
download | vyos-1x-9c81b63a1a42d95e99c6a32ca6e3cb4704231352.tar.gz vyos-1x-9c81b63a1a42d95e99c6a32ca6e3cb4704231352.zip |
T5108: Add option rate-limit for l2tp pptp sstp ipoe raw format
There is a missing usefull option 'rate-limit' for
L2TP/PPTP/SSTP/IPoE raw output format
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/accelppp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/accelppp.py b/src/op_mode/accelppp.py index 87a25bb96..00de45fc8 100755 --- a/src/op_mode/accelppp.py +++ b/src/op_mode/accelppp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2022 VyOS maintainers and contributors +# Copyright (C) 2022-2023 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -75,8 +75,8 @@ def _get_raw_statistics(accel_output, pattern, protocol): def _get_raw_sessions(port): - cmd_options = 'show sessions ifname,username,ip,ip6,ip6-dp,type,state,' \ - 'uptime-raw,calling-sid,called-sid,sid,comp,rx-bytes-raw,' \ + cmd_options = 'show sessions ifname,username,ip,ip6,ip6-dp,type,rate-limit,' \ + 'state,uptime-raw,calling-sid,called-sid,sid,comp,rx-bytes-raw,' \ 'tx-bytes-raw,rx-pkts,tx-pkts' output = vyos.accel_ppp.accel_cmd(port, cmd_options) parsed_data: list[dict[str, str]] = vyos.accel_ppp.accel_out_parse( |