Skip to content

Commit

Permalink
update interface-lagg test
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 6, 2024
1 parent 84ca0ad commit c383a99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Some tests benefit from having a second network-interface available.

You need to add a `opt1` dummy-interface named `TEST`. The assigned IPs do not matter.

Add another interface and leave it unassigned (`vtnet2`).

### Internet access

To perform some tests (system, ids) the test firewall needs to reach some public service:
Expand Down Expand Up @@ -55,6 +57,14 @@ The gateway tests will not work correctly if the LAN interface mismatches.

You can provide your GW lan-if via env-vars: `TEST_FIREWALL_RULE_GRP_IF`

### LAGG Interfaces

The LAGG tests will not work correctly if the unassigned interface mismatches.

You can provide your if via env-vars: `TEST_FIREWALL_LAGG_IF`

And the count of existing LAGGs via `TEST_FIREWALL_LAGG_CNT`

----

## Run
Expand Down
3 changes: 2 additions & 1 deletion tests/interface_lagg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
target: 'interface_lagg'

vars:
if_lag: "{{ lookup('ansible.builtin.env', 'TEST_FINTERFACE_LAGG_IF') | default('lan', true) }}"
if_lag: "{{ lookup('ansible.builtin.env', 'TEST_FIREWALL_LAGG_IF') | default('vtnet2', true) }}"
if_lag_ctn: "{{ lookup('ansible.builtin.env', 'TEST_FIREWALL_LAGG_CNT') | default('1', true) }}"

tasks:
- name: Listing
Expand Down

0 comments on commit c383a99

Please sign in to comment.