Skip to content

Commit

Permalink
issue #43 : test disable phase 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Dec 14, 2023
1 parent 578b699 commit 67871ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/ipsecphase1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- "{{ ipsecphasevar.phase1 | default({}) }}"
when:
- not item.key == 'encryption-algorithm'
- not (item.key == 'disabled' and item.value|int != 1)

- name: "IPSec ike phase1 encryption-algorithm for ikeid {{ ikeid }}"
delegate_to: localhost
Expand Down
1 change: 1 addition & 0 deletions test/ipsec-testdisable-expect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<name>aes</name>
<keylen>256</keylen>
</encryption-algorithm>
<disabled>1</disabled>
</phase1>
<phase2>
<ikeid>1</ikeid>
Expand Down
1 change: 1 addition & 0 deletions test/ipsec-testdisable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ opn_ipsec:
ikeids: # key is the ikeid
1:
phase1:
disabled: 1
descr: s2s test
iketype: ikev1
interface: wan
Expand Down

0 comments on commit 67871ee

Please sign in to comment.