diff options
author | Christian Breunig <christian@breunig.cc> | 2023-03-23 15:20:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 15:20:29 +0100 |
commit | 4a791a69985d246f694e53ffe9908ff0f34af214 (patch) | |
tree | 9cfca7e2dbe5e76b4d96711e42cc77fc4e60052e /src | |
parent | 8da2b48ab6ff913cfa86730d86870cc7e2effeec (diff) | |
parent | 9c81b63a1a42d95e99c6a32ca6e3cb4704231352 (diff) | |
download | vyos-1x-4a791a69985d246f694e53ffe9908ff0f34af214.tar.gz vyos-1x-4a791a69985d246f694e53ffe9908ff0f34af214.zip |
Merge pull request #1909 from sever-sever/T5108
T5108: Add option rate-limit for l2tp pptp sstp ipoe raw 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( |