summaryrefslogtreecommitdiff
path: root/src/completion/list_openvpn_clients.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-11 20:36:04 +0200
committerGitHub <noreply@github.com>2020-04-11 20:36:04 +0200
commit7ae606605e2f86288e0c76f440872d9eb2fcc46c (patch)
treec4dff573a8262022515247f802c667988e2d30a9 /src/completion/list_openvpn_clients.py
parent867fc8d75380fee36dab7d495b835b19e7dafd58 (diff)
parent8bc12847568582d3b34f3859946470af1344f9ea (diff)
downloadvyos-1x-7ae606605e2f86288e0c76f440872d9eb2fcc46c.tar.gz
vyos-1x-7ae606605e2f86288e0c76f440872d9eb2fcc46c.zip
Merge pull request #331 from thomas-mangin/T2223-register
completion: T2238: use interface data
Diffstat (limited to 'src/completion/list_openvpn_clients.py')
-rwxr-xr-xsrc/completion/list_openvpn_clients.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/completion/list_openvpn_clients.py b/src/completion/list_openvpn_clients.py
index 17b0c7008..177ac90c9 100755
--- a/src/completion/list_openvpn_clients.py
+++ b/src/completion/list_openvpn_clients.py
@@ -18,7 +18,7 @@ import os
import sys
import argparse
-from vyos.ifconfig import Interface
+from vyos.ifconfig import Section
def get_client_from_interface(interface):
clients = []
@@ -50,7 +50,7 @@ if __name__ == "__main__":
if args.interface:
clients = get_client_from_interface(args.interface)
elif args.all:
- for interface in Interface.listing("openvpn"):
+ for interface in Section.interfaces("openvpn"):
clients += get_client_from_interface(interface)
print(" ".join(clients))