diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:36:46 +0000 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:36:46 +0000 |
commit | bbea850ea5f8ff0402cd276ab63963ece7e0c763 (patch) | |
tree | 4f5a4a5fa2a7c94e3051e905cadcefc389046883 /src/completion/list_openvpn_clients.py | |
parent | 8ac524b6d12618d696fa883ff78ded8c35c26d05 (diff) | |
download | vyos-1x-bbea850ea5f8ff0402cd276ab63963ece7e0c763.tar.gz vyos-1x-bbea850ea5f8ff0402cd276ab63963ece7e0c763.zip |
ifconfig: T2057: remove need for interface-types.json
Diffstat (limited to 'src/completion/list_openvpn_clients.py')
-rwxr-xr-x | src/completion/list_openvpn_clients.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/completion/list_openvpn_clients.py b/src/completion/list_openvpn_clients.py index 828ce6b5e..17b0c7008 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.interfaces import list_interfaces_of_type +from vyos.ifconfig import Interface 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 list_interfaces_of_type("openvpn"): + for interface in Interface.listing("openvpn"): clients += get_client_from_interface(interface) print(" ".join(clients)) |