-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T7013 route maps integration tests (#381)
* T7013 route-map integration tests - 1.4 support and structure * added workaround for 1.4 integration tests for route-maps * merged commands generalised * collapse route_maps intgeration tests vars
- Loading branch information
Showing
4 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- route_maps - Refactor the integration tests structure and support for 1.4+ versions |
21 changes: 2 additions & 19 deletions
21
tests/integration/targets/vyos_route_maps/tests/cli/_populate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
--- | ||
- ansible.builtin.include_tasks: _remove_config.yaml | ||
|
||
- name: Setup | ||
- name: Setup {{ vyos_version }} | ||
vyos.vyos.vyos_config: | ||
lines: | ||
- set policy route-map test2 rule 1 action 'permit' | ||
- set policy route-map test2 rule 1 description 'test' | ||
- set policy route-map test2 rule 2 action 'permit' | ||
- set policy route-map test2 rule 2 on-match goto '4' | ||
- set policy route-map test3 rule 1 action 'permit' | ||
- set policy route-map test3 rule 1 match metric '1' | ||
- set policy route-map test3 rule 1 match peer '192.0.2.32' | ||
- set policy route-map test3 rule 1 set community 'internet' | ||
- set policy route-map test3 rule 1 set ip-next-hop '192.0.2.33' | ||
- set policy route-map test3 rule 1 set local-preference '4' | ||
- set policy route-map test3 rule 1 set metric '5' | ||
- set policy route-map test3 rule 1 set metric-type 'type-1' | ||
- set policy route-map test3 rule 1 set origin 'egp' | ||
- set policy route-map test3 rule 1 set originator-id '192.0.2.34' | ||
- set policy route-map test3 rule 1 set tag '5' | ||
- set policy route-map test3 rule 1 set weight '4' | ||
ignore_errors: true | ||
lines: "{{ populate_config }}" | ||
vars: | ||
ansible_connection: ansible.netcommon.network_cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters