summaryrefslogtreecommitdiff
path: root/src/op_mode/ipoe-control.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-07 19:53:00 +0200
committerGitHub <noreply@github.com>2024-05-07 19:53:00 +0200
commitabc327ebc9e77910b29c1a0fa32f757c51574971 (patch)
treec0485a54512ddfff1c740618ad222d7329e6ed74 /src/op_mode/ipoe-control.py
parentc3dc0dfc77e60a4c0f03a9564204c2995874723f (diff)
parent40b9085171ecf97f791b5f3b5cb32dd5f46d0f21 (diff)
downloadvyos-1x-abc327ebc9e77910b29c1a0fa32f757c51574971.tar.gz
vyos-1x-abc327ebc9e77910b29c1a0fa32f757c51574971.zip
Merge pull request #3423 from natali-rs1985/T6284-current
op-mode: T6284: IPoE-server op-mode does not show IPv6 address field
Diffstat (limited to 'src/op_mode/ipoe-control.py')
-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: