summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-07 21:03:50 +0200
committerGitHub <noreply@github.com>2024-05-07 21:03:50 +0200
commit09abfce4008b906c7aeb62d29081fed26bb02a42 (patch)
treeaa3214ff135de6c448120848d6953ed449d67c0f
parentc288f9c3d98bbed0c4736f657b0c4248810b5bb5 (diff)
parent82c53ad88d935f01fc4a20ffeab5d521a6d1729c (diff)
downloadvyos-1x-09abfce4008b906c7aeb62d29081fed26bb02a42.tar.gz
vyos-1x-09abfce4008b906c7aeb62d29081fed26bb02a42.zip
Merge pull request #3426 from vyos/mergify/bp/sagitta/pr-3423
op-mode: T6284: IPoE-server op-mode does not show IPv6 address field (backport #3423)
-rwxr-xr-xsrc/op_mode/ipoe-control.py6
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: