Debian Codegraph @

ansible_collections/cisco/iosxr/tests/integration/targets/iosxr_route_maps/vars/main.yaml

raw symbols SCIP
1 ---
2 merged:
3 commands:
4 - "route-policy SIMPLE_GLOBAL_ROUTE_POLICY"
5 - "apply A_NEW_ROUTE_POLICY"
6 - "set local-preference + 100\nset local-preference - 200\nset local-preference * 300\n"
7 - "set community (11011:1001) additive"
8 - "set med 100"
9 - "set extcommunity rt 65000:100 additive"
10 - "set weight 20000"
11 - "end-policy"
12 - "route-policy POLICY_TWO_PARAMS($SPECIFICITY, $GEO_LOCATION)"
13 - "set community (64496:100, 64496:$SPECIFICITY, 64496:$GEO_LOCATION, 65012:174)"
14 - "set local-preference 150\n"
15 - "end-policy"
16 - "route-policy SIMPLE_CONDITION_ROUTE_POLICY"
17 - "if destination in SIMPLE_CONDITION_ROUTE_POLICY then"
18 - "pass"
19 - "else"
20 - "drop"
21 - "endif"
22 - "end-policy"
23 - "route-policy COMPLEX_CONDITION_ROUTE_POLICY"
24 - "if community matches-any (9119:1001) or community matches-any (11100:1001) then"
25 - "drop"
26 - "pass"
27 - "endif"
28 - "end-policy"
29 - "route-policy COMPLEX_ROUTE_POLICY"
30 - "if destination in A_RANDOM_POLICY_DUMMY then"
31 - "drop"
32 - "else"
33 - "if destination in A_RANDOM_POLICY then"
34 - "pass"
35 - "else"
36 - "drop"
37 - "endif"
38 - "endif"
39 - "end-policy"
40 after:
41 - global:
42 set:
43 community:
44 community_name: "(64496:100, 64496:$SPECIFICITY, 64496:$GEO_LOCATION, 65012:174)"
45 local_preference:
46 - metric_number: 150
47 name: "POLICY_TWO_PARAMS($SPECIFICITY, $GEO_LOCATION)"
48 - else_section:
49 else_section:
50 drop: true
51 if_section:
52 condition: "destination in A_RANDOM_POLICY"
53 pass: true
54 if_section:
55 condition: "destination in A_RANDOM_POLICY_DUMMY"
56 drop: true
57 name: "COMPLEX_ROUTE_POLICY"
58 - global:
59 apply:
60 - route_policy: "A_NEW_ROUTE_POLICY"
61 set:
62 community:
63 additive: true
64 community_name: "(11011:1001)"
65 med:
66 value: 100
67 extcommunity:
68 rt: "65000:100"
69 additive: true
70 weight: 20000
71 local_preference:
72 - increment: true
73 metric_number: 100
74 - decrement: true
75 metric_number: 200
76 - multiply: true
77 metric_number: 300
78 name: "SIMPLE_GLOBAL_ROUTE_POLICY"
79 - else_section:
80 global:
81 drop: true
82 if_section:
83 condition: "destination in SIMPLE_CONDITION_ROUTE_POLICY"
84 pass: true
85 name: "SIMPLE_CONDITION_ROUTE_POLICY"
86 - else_section:
87 global:
88 pass: true
89 if_section:
90 condition: "community matches-any (9119:1001) or community matches-any (11100:1001)"
91 drop: true
92 name: "COMPLEX_CONDITION_ROUTE_POLICY"
93
94 overridden:
95 commands:
96 - route-policy SIMPLE_GLOBAL_ROUTE_POLICY_overridden
97 - apply A_NEW_ROUTE_POLICY
98 - set community test_comm_name
99 - set weight 20000
100 - "set local-preference + 100\nset local-preference - 200\nset local-preference * 300\n"
101 - end-policy
102 - route-policy COMPLEX_ROUTE_POLICY_overridden
103 - if as-path in (ios-regex '_3117_', ios-regex '_600_') then
104 - drop
105 - else
106 - if destination in A_RANDOM_POLICY then
107 - pass
108 - set community test_comm_name
109 - else
110 - drop
111 - endif
112 - endif
113 - end-policy
114 - no route-policy POLICY_TWO_PARAMS($SPECIFICITY, $GEO_LOCATION)
115 - no route-policy COMPLEX_ROUTE_POLICY
116 - no route-policy SIMPLE_GLOBAL_ROUTE_POLICY
117 - no route-policy SIMPLE_CONDITION_ROUTE_POLICY
118 - no route-policy COMPLEX_CONDITION_ROUTE_POLICY
119 after:
120 - else_section:
121 else_section:
122 drop: true
123 if_section:
124 condition: destination in A_RANDOM_POLICY
125 pass: true
126 set:
127 community:
128 community_name: test_comm_name
129 if_section:
130 condition: as-path in (ios-regex '_3117_', ios-regex '_600_')
131 drop: true
132 name: COMPLEX_ROUTE_POLICY_overridden
133 - global:
134 apply:
135 - route_policy: A_NEW_ROUTE_POLICY
136 set:
137 community:
138 community_name: test_comm_name
139 weight: 20000
140 local_preference:
141 - increment: true
142 metric_number: 100
143 - decrement: true
144 metric_number: 200
145 - multiply: true
146 metric_number: 300
147 name: SIMPLE_GLOBAL_ROUTE_POLICY_overridden
148 before:
149 - global:
150 set:
151 community:
152 community_name: (64496:100, 64496:$SPECIFICITY, 64496:$GEO_LOCATION, 65012:174)
153 local_preference:
154 - metric_number: 150
155 name: POLICY_TWO_PARAMS($SPECIFICITY, $GEO_LOCATION)
156 - else_section:
157 else_section:
158 drop: true
159 if_section:
160 condition: destination in A_RANDOM_POLICY
161 pass: true
162 if_section:
163 condition: destination in A_RANDOM_POLICY_DUMMY
164 drop: true
165 name: COMPLEX_ROUTE_POLICY
166 - global:
167 apply:
168 - route_policy: A_NEW_ROUTE_POLICY
169 set:
170 community:
171 additive: true
172 community_name: (11011:1001)
173 med:
174 value: 100
175 extcommunity:
176 rt: 65000:100
177 additive: true
178 weight: 20000
179 local_preference:
180 - increment: true
181 metric_number: 100
182 - decrement: true
183 metric_number: 200
184 - multiply: true
185 metric_number: 300
186 name: SIMPLE_GLOBAL_ROUTE_POLICY
187 - else_section:
188 global:
189 drop: true
190 if_section:
191 condition: destination in SIMPLE_CONDITION_ROUTE_POLICY
192 pass: true
193 name: SIMPLE_CONDITION_ROUTE_POLICY
194 - else_section:
195 global:
196 pass: true
197 if_section:
198 condition: community matches-any (9119:1001) or community matches-any (11100:1001)
199 drop: true
200 name: COMPLEX_CONDITION_ROUTE_POLICY
201
202 rendered:
203 commands:
204 - route-policy SIMPLE_GLOBAL_ROUTE_POLICY
205 - apply A_NEW_ROUTE_POLICY
206 - set community (11011:1001) additive
207 - set weight 20000
208 - end-policy
209 - route-policy SIMPLE_CONDITION_ROUTE_POLICY
210 - if destination in SIMPLE_CONDITION_ROUTE_POLICY then
211 - pass
212 - else
213 - drop
214 - endif
215 - end-policy
216 - route-policy COMPLEX_ROUTE_POLICY
217 - if as-path in (ios-regex '_3117_', ios-regex '_600_') then
218 - drop
219 - else
220 - if destination in A_RANDOM_POLICY then
221 - pass
222 - set community (101010:1) additive
223 - else
224 - drop
225 - endif
226 - endif
227 - end-policy
228 - route-policy COMPLEX_CONDITION_ROUTE_POLICY
229 - if community matches-any (9119:1001) or community matches-any (11100:1001) then
230 - drop
231 - else
232 - pass
233 - endif
234 - end-policy
235
236 deleted:
237 after:
238 - global:
239 set:
240 community:
241 community_name: "(64496:100, 64496:$SPECIFICITY, 64496:$GEO_LOCATION, 65012:174)"
242 local_preference:
243 - metric_number: 150
244 name: POLICY_TWO_PARAMS($SPECIFICITY, $GEO_LOCATION)
245 - global:
246 apply:
247 - route_policy: A_NEW_ROUTE_POLICY
248 set:
249 community:
250 additive: true
251 community_name: (11011:1001)
252 med:
253 value: 100
254 extcommunity:
255 rt: 65000:100
256 additive: true
257 weight: 20000
258 local_preference:
259 - increment: true
260 metric_number: 100
261 - decrement: true
262 metric_number: 200
263 - multiply: true
264 metric_number: 300
265 name: SIMPLE_GLOBAL_ROUTE_POLICY
266 - else_section:
267 global:
268 drop: true
269 if_section:
270 condition: destination in SIMPLE_CONDITION_ROUTE_POLICY
271 pass: true
272 name: SIMPLE_CONDITION_ROUTE_POLICY
273 - else_section:
274 global:
275 pass: true
276 if_section:
277 condition: community matches-any (9119:1001) or community matches-any (11100:1001)
278 drop: true
279 name: COMPLEX_CONDITION_ROUTE_POLICY