summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_route_maps/vars
diff options
context:
space:
mode:
authorAshwini Mhatre <amhatre@redhat.com>2021-05-12 00:04:47 +0530
committerGitHub <noreply@github.com>2021-05-11 18:34:47 +0000
commit407eec39119320875ffcdede81155a9a5ed201d7 (patch)
tree49dc6845763c9fcc082129089c1eebc5cf36968c /tests/integration/targets/vyos_route_maps/vars
parent6de551224ff6ada0eb7a0a45938d535302a38d7c (diff)
downloadvyos-ansible-collection-407eec39119320875ffcdede81155a9a5ed201d7.tar.gz
vyos-ansible-collection-407eec39119320875ffcdede81155a9a5ed201d7.zip
Vyos route maps (#156)
Vyos route maps Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'tests/integration/targets/vyos_route_maps/vars')
-rw-r--r--tests/integration/targets/vyos_route_maps/vars/main.yaml109
1 files changed, 109 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_route_maps/vars/main.yaml b/tests/integration/targets/vyos_route_maps/vars/main.yaml
new file mode 100644
index 0000000..5a0d027
--- /dev/null
+++ b/tests/integration/targets/vyos_route_maps/vars/main.yaml
@@ -0,0 +1,109 @@
+---
+merged:
+ commands:
+ - set policy route-map test1 rule 1 description test
+ - set policy route-map test1 rule 1 action permit
+ - set policy route-map test1 rule 1 continue 2
+ - set policy route-map test3 rule 1 action permit
+ - 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
+ - set policy route-map test3 rule 1 match metric 1
+ - set policy route-map test3 rule 1 match peer 192.0.2.32
+
+ after:
+ - route_map: "test3"
+ entries:
+ - sequence: 1
+ action: "permit"
+ match:
+ metric: 1
+ peer: "192.0.2.32"
+ set:
+ local_preference: "4"
+ metric: "5"
+ metric_type: "type-1"
+ origin: egp
+ originator_id: "192.0.2.34"
+ tag: "5"
+ weight: "4"
+ - route_map: "test1"
+ entries:
+ - sequence: 1
+ description: "test"
+ action: "permit"
+ continue_sequence: 2
+
+replaced:
+ commands:
+ - delete policy route-map test3 rule 1 set ip-next-hop 192.0.2.33
+ - set policy route-map test3 rule 1 set local-preference 6
+ - set policy route-map test3 rule 1 set metric 4
+ - set policy route-map test3 rule 1 set tag 4
+ - delete policy route-map test3 rule 1 set community internet
+ - set policy route-map test3 rule 1 match metric 3
+ - set policy route-map test3 rule 1 match peer 192.0.2.35
+
+ after:
+ - route_map: test2
+ entries:
+ - sequence: 1
+ description: "test"
+ action: permit
+ - sequence: 1
+ action: permit
+ on_match:
+ goto: 4
+ - route_map: test3
+ entries:
+ - sequence: 1
+ action: permit
+ match:
+ metric: 3
+ peer: 192.0.2.35
+ set:
+ local_preference: 6
+ metric: 4
+ metric_type: "type-1"
+ origin: egp
+ originator_id: 192.0.2.34
+ tag: 4
+ weight: 4
+
+overridden:
+ commands:
+ - delete policy route-map test2
+ - delete policy route-map test3 rule 1 set ip-next-hop 192.0.2.33
+ - set policy route-map test3 rule 1 set local-preference 6
+ - set policy route-map test3 rule 1 set metric 4
+ - set policy route-map test3 rule 1 set tag 4
+ - delete policy route-map test3 rule 1 set community internet
+ - set policy route-map test3 rule 1 match metric 3
+ - set policy route-map test3 rule 1 match peer 192.0.2.35
+
+ after:
+ - route_map: test3
+ entries:
+ - sequence: 1
+ action: permit
+ match:
+ metric: 3
+ peer: 192.0.2.35
+ set:
+ local_preference: 6
+ metric: 4
+ metric_type: "type-1"
+ origin: egp
+ originator_id: 192.0.2.34
+ tag: 4
+ weight: 4
+
+deleted:
+ commands:
+ - delete policy route-map test2
+ - delete policy route-map test3
+ after: []