diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-05-07 16:48:16 +0300 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-07 17:53:49 +0000 |
commit | 82c53ad88d935f01fc4a20ffeab5d521a6d1729c (patch) | |
tree | be90622804cbfd99f9a8d75249f48fb36897c785 | |
parent | e54cffa9615acb8dd99b9b90621a004f15941321 (diff) | |
download | vyos-1x-82c53ad88d935f01fc4a20ffeab5d521a6d1729c.tar.gz vyos-1x-82c53ad88d935f01fc4a20ffeab5d521a6d1729c.zip |
op-mode: T6284: IPoE-server op-mode does not show IPv6 address field
(cherry picked from commit 40b9085171ecf97f791b5f3b5cb32dd5f46d0f21)
-rwxr-xr-x | src/op_mode/ipoe-control.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/op_mode/ipoe-control.py b/src/op_mode/ipoe-control.py index 0f33beca7..b7d6a0c43 100755 --- a/src/op_mode/ipoe-control.py +++ b/src/op_mode/ipoe-control.py @@ -56,7 +56,11 @@ def main(): if args.selector in cmd_dict['selector'] and args.target: run(cmd_dict['cmd_base'] + "{0} {1} {2}".format(args.action, args.selector, args.target)) else: - output, err = popen(cmd_dict['cmd_base'] + cmd_dict['actions'][args.action], decode='utf-8') + if args.action == "show_sessions": + ses_pattern = " ifname,username,calling-sid,ip,ip6,ip6-dp,rate-limit,type,comp,state,uptime" + else: + ses_pattern = "" + output, err = popen(cmd_dict['cmd_base'] + cmd_dict['actions'][args.action] + ses_pattern, decode='utf-8') if not err: print(output) else: |