summaryrefslogtreecommitdiff
path: root/src/op_mode/openconnect-control.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-08-06 10:09:09 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-08-06 10:09:09 +0000
commit1bd3a9635a5ff703f5623743a487e0effb846c41 (patch)
treee08c3c533f520c655d273e07a4eb5fa8987e57e6 /src/op_mode/openconnect-control.py
parent1b637f78b870f8ecc4971de5baf0a6fda54c40f7 (diff)
downloadvyos-1x-1bd3a9635a5ff703f5623743a487e0effb846c41.tar.gz
vyos-1x-1bd3a9635a5ff703f5623743a487e0effb846c41.zip
ocserv: T4596: Rewrite show openconnect sessions op-mode
Rewrite "show openconnect-server sessions" to vyos.opmode format Ability to get raw and formatted output Ability to get data via API
Diffstat (limited to 'src/op_mode/openconnect-control.py')
-rwxr-xr-xsrc/op_mode/openconnect-control.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/op_mode/openconnect-control.py b/src/op_mode/openconnect-control.py
index a128cc011..20c50e779 100755
--- a/src/op_mode/openconnect-control.py
+++ b/src/op_mode/openconnect-control.py
@@ -19,7 +19,6 @@ import argparse
import json
from vyos.config import Config
-from vyos.util import commit_in_progress
from vyos.util import popen
from vyos.util import run
from vyos.util import DEVNULL
@@ -60,10 +59,6 @@ def main():
# Check is Openconnect server configured
is_ocserv_configured()
- if commit_in_progress():
- print('Cannot restart openconnect while a commit is in progress')
- exit(1)
-
if args.action == "restart":
run("sudo systemctl restart ocserv.service")
sys.exit(0)