summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-09 10:00:21 +0200
committerGitHub <noreply@github.com>2020-09-09 10:00:21 +0200
commit32eb4b342e962f3f2c3f46671a9415f04b0db40b (patch)
treeac30396d42616eefa40a31f7091aa23d84feefb5 /src/op_mode
parentb6b61bc9ecf1328e67a0c15934f8bf3966a6b66d (diff)
parente41ae4d952e276d8497d38f5761806c14ea542d2 (diff)
downloadvyos-1x-32eb4b342e962f3f2c3f46671a9415f04b0db40b.tar.gz
vyos-1x-32eb4b342e962f3f2c3f46671a9415f04b0db40b.zip
Merge pull request #541 from DmitriyEshenko/1x-cur-openconnect
openconnect: T2036: Move CLI commands under vpn openconnect
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/openconnect-control.py (renamed from src/op_mode/anyconnect-control.py)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/op_mode/anyconnect-control.py b/src/op_mode/openconnect-control.py
index 6382016b7..ef9fe618c 100755
--- a/src/op_mode/anyconnect-control.py
+++ b/src/op_mode/openconnect-control.py
@@ -28,7 +28,7 @@ occtl_socket = '/run/ocserv/occtl.socket'
def show_sessions():
out, code = popen("sudo {0} -j -s {1} show users".format(occtl, occtl_socket),stderr=DEVNULL)
if code:
- sys.exit('Cannot get anyconnect users information')
+ sys.exit('Cannot get openconnect users information')
else:
headers = ["interface", "username", "ip", "remote IP", "RX", "TX", "state", "uptime"]
sessions = json.loads(out)
@@ -38,11 +38,11 @@ def show_sessions():
if len(ses_list) > 0:
print(tabulate(ses_list, headers))
else:
- print("No active anyconnect sessions")
+ print("No active openconnect sessions")
def is_ocserv_configured():
- if not Config().exists_effective('vpn anyconnect'):
- print("vpn anyconnect server is not configured")
+ if not Config().exists_effective('vpn openconnect'):
+ print("vpn openconnect server is not configured")
sys.exit(1)
def main():
@@ -54,7 +54,7 @@ def main():
args = parser.parse_args()
- # Check is IPoE configured
+ # Check is Openconnect server configured
is_ocserv_configured()
if args.action == "restart":