Skip to content

Commit

Permalink
strongSwan: upgrade scripts to work with package version 5.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
c-po committed Dec 27, 2022
1 parent a0d3c57 commit 6857447
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion op-mode-definitions/monitor-log.xml.in
Expand Up @@ -262,7 +262,7 @@
<properties>
<help>Monitor last lines of IPsec</help>
</properties>
<command>journalctl --no-hostname --boot --follow --unit strongswan-starter.service</command>
<command>journalctl --no-hostname --boot --follow --unit strongswan.service</command>
</leafNode>
<leafNode name="l2tp">
<properties>
Expand Down
4 changes: 2 additions & 2 deletions op-mode-definitions/show-log.xml.in
Expand Up @@ -403,13 +403,13 @@
<properties>
<help>Show log for ALL</help>
</properties>
<command>journalctl --no-hostname --boot --unit strongswan-starter.service --unit accel-ppp@*.service</command>
<command>journalctl --no-hostname --boot --unit strongswan.service --unit accel-ppp@*.service</command>
</leafNode>
<leafNode name="ipsec">
<properties>
<help>Show log for IPsec</help>
</properties>
<command>journalctl --no-hostname --boot --unit strongswan-starter.service</command>
<command>journalctl --no-hostname --boot --unit strongswan.service</command>
</leafNode>
<leafNode name="l2tp">
<properties>
Expand Down
5 changes: 3 additions & 2 deletions smoketest/scripts/cli/test_vpn_ipsec.py
Expand Up @@ -39,6 +39,7 @@
esp_group = 'MyESPGroup'
ike_group = 'MyIKEGroup'
secret = 'MYSECRETKEY'
PROCESS_NAME = 'charon'

ca_pem = """
MIIDSzCCAjOgAwIBAgIUQHK+ZgTUYZksvXY2/MyW+Jiels4wDQYJKoZIhvcNAQEL
Expand Down Expand Up @@ -137,14 +138,14 @@ def setUp(self):

def tearDown(self):
# Check for running process
self.assertTrue(process_named_running('charon'))
self.assertTrue(process_named_running(PROCESS_NAME))

self.cli_delete(base_path)
self.cli_delete(tunnel_path)
self.cli_commit()

# Check for no longer running process
self.assertFalse(process_named_running('charon'))
self.assertFalse(process_named_running(PROCESS_NAME))

def test_01_dhcp_fail_handling(self):
# Interface for dhcp-interface
Expand Down
2 changes: 1 addition & 1 deletion src/conf_mode/vpn_ipsec.py
Expand Up @@ -622,7 +622,7 @@ def wait_for_vici_socket(timeout=5, sleep_interval=0.1):
sleep(sleep_interval)

def apply(ipsec):
systemd_service = 'strongswan-starter.service'
systemd_service = 'strongswan.service'
if not ipsec:
call(f'systemctl stop {systemd_service}')
else:
Expand Down

0 comments on commit 6857447

Please sign in to comment.