Skip to content

Add very basic check for address duplication #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ansible/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
msg: "INTERFACE_ADDRESS should be in the allocated space"
when: (wireguard_configs | map(attribute='INTERFACE_ADDRESS', default=expected_default) | ansible.utils.reduce_on_network(expected_range) | list | length | string) != wg_config_len.msg

- name: Confirm addresses are unique
ansible.builtin.fail:
msg: The INTERFACE_ADDRESS values in ansible/wireguard.yaml are not unique - {{ wireguard_configs | map(attribute='INTERFACE_ADDRESS') }}
when: (wireguard_configs | map(attribute='INTERFACE_ADDRESS') | list | unique | length | string) != wg_config_len.msg

- name: NEIGHBORS property
block:
- name: NEIGHBORS should be an IP
Expand Down
Loading