summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-05 21:58:43 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-06 09:12:48 +0200
commita5cd877a0a4a43644a6d91e6b95fe938b9b2726b (patch)
treef01f18b80e367234336e6281ffffbe253408addd /python
parent0b93fce06526a2826c19adcbb25874e51cccf68e (diff)
downloadvyos-1x-a5cd877a0a4a43644a6d91e6b95fe938b9b2726b.tar.gz
vyos-1x-a5cd877a0a4a43644a6d91e6b95fe938b9b2726b.zip
ipsec: T2816: Migrate ipsec-settings.xml.in and charon.conf to vpn_ipsec.py
Also adds check for the charon socket instead of an arbitrary sleep()
Diffstat (limited to 'python')
-rw-r--r--python/vyos/util.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index c64b477ef..171ab397f 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -440,7 +440,6 @@ def process_running(pid_file):
pid = f.read().strip()
return pid_exists(int(pid))
-
def process_named_running(name):
""" Checks if process with given name is running and returns its PID.
If Process is not running, return None
@@ -451,7 +450,6 @@ def process_named_running(name):
return p.pid
return None
-
def seconds_to_human(s, separator=""):
""" Converts number of seconds passed to a human-readable
interval such as 1w4d18h35m59s