1 UNIFICATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
2 <n:topology-id>topo:1</n:topology-id>
4 <output-model>{output-model}</output-model>
6 <correlation-id>1</correlation-id>
8 <correlation-item>{correlation-item}</correlation-item>
10 <aggregation-type>{aggregation-type}</aggregation-type>
12 <input-model>{input-model}</input-model>
13 <underlay-topology>{underlay-topology-id}</underlay-topology>
15 <aggregate-inside>false</aggregate-inside>
18 <input-model>{input-model}</input-model>
19 <underlay-topology>{underlay-topology-id}</underlay-topology>
21 <aggregate-inside>false</aggregate-inside>
28 UNIFICATION_NT_AGGREGATE_INSIDE = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
29 <n:topology-id>topo:1</n:topology-id>
31 <output-model>{output-model}</output-model>
33 <correlation-id>1</correlation-id>
35 <correlation-item>{correlation-item}</correlation-item>
37 <aggregation-type>{aggregation-type}</aggregation-type>
39 <input-model>{input-model}</input-model>
40 <underlay-topology>{underlay-topology-id}</underlay-topology>
42 <aggregate-inside>true</aggregate-inside>
49 UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
50 <n:topology-id>topo:1</n:topology-id>
52 <output-model>{output-model}</output-model>
54 <correlation-id>1</correlation-id>
56 <correlation-item>{correlation-item}</correlation-item>
58 <aggregation-type>{aggregation-type}</aggregation-type>
60 <apply-filters>1</apply-filters>
61 <input-model>{input-model}</input-model>
62 <underlay-topology>{underlay-topology-id}</underlay-topology>
64 <aggregate-inside>true</aggregate-inside>
68 <underlay-topology>{underlay-topology-id}</underlay-topology>
74 UNIFICATION_FILTRATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
75 <n:topology-id>topo:1</n:topology-id>
77 <output-model>{output-model}</output-model>
79 <correlation-id>1</correlation-id>
81 <correlation-item>{correlation-item}</correlation-item>
83 <aggregation-type>{aggregation-type}</aggregation-type>
85 <apply-filters>1</apply-filters>
86 <input-model>{input-model}</input-model>
87 <underlay-topology>{underlay-topology-id}</underlay-topology>
89 <aggregate-inside>false</aggregate-inside>
92 <input-model>{input-model}</input-model>
93 <underlay-topology>{underlay-topology-id}</underlay-topology>
95 <aggregate-inside>false</aggregate-inside>
99 <underlay-topology>{underlay-topology-id}</underlay-topology>
105 FILTRATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
106 <n:topology-id>topo:1</n:topology-id>
108 <output-model>{output-model}</output-model>
110 <correlation-id>1</correlation-id>
111 <type>filtration-only</type>
112 <correlation-item>{correlation-item}</correlation-item>
114 <underlay-topology>{underlay-topology-id}</underlay-topology>
123 <target-field-path>{target-field-path}</target-field-path>
124 <matching-key>{matching-key}</matching-key>
130 <language>{language}</language>
136 FILTER_SCRIPT = '''<filter>
137 <input-model>{input-model}</input-model>
138 <filter-id>1</filter-id>
139 <target-field>{target-field}</target-field>
140 <filter-type>script</filter-type>
143 <language>{language}</language>
152 FILTER_IPV4 = '''<filter>
153 <input-model>{input-model}</input-model>
154 <filter-id>1</filter-id>
155 <target-field>{target-field}</target-field>
156 <filter-type>ipv4-address</filter-type>
157 <ipv4-address-filter>
158 <ipv4-address>{ipv4}</ipv4-address>
159 </ipv4-address-filter>
162 FILTER_IPV6 = '''<filter>
163 <input-model>{input-model}</input-model>
164 <filter-id>1</filter-id>
165 <target-field>{target-field}</target-field>
166 <filter-type>ipv6-address</filter-type>
167 <ipv6-address-filter>
168 <ipv6-address>{ipv6}</ipv6-address>
169 </ipv6-address-filter>
172 FILTER_RANGE_NUMBER = '''<filter>
173 <input-model>{input-model}</input-model>
174 <filter-id>1</filter-id>
175 <target-field>{target-field}</target-field>
176 <filter-type>range-number</filter-type>
177 <range-number-filter>
178 <min-number-value>{min}</min-number-value>
179 <max-number-value>{max}</max-number-value>
180 </range-number-filter>
183 FILTER_RANGE_STRING = '''<filter>
184 <input-model>{input-model}</input-model>
185 <filter-id>1</filter-id>
186 <target-field>{target-field}</target-field>
187 <filter-type>range-string</filter-type>
188 <range-string-filter>
189 <min-string-value>{min}</min-string-value>
190 <max-string-value>{max}</max-string-value>
191 </range-string-filter>
194 FILTER_SPECIFIC_NUMBER = '''<filter>
195 <input-model>{input-model}</input-model>
196 <filter-id>1</filter-id>
197 <target-field>{target-field}</target-field>
198 <filter-type>specific-number</filter-type>
199 <specific-number-filter>
200 <specific-number>{number}</specific-number>
201 </specific-number-filter>
204 FILTER_SPECIFIC_STRING = '''<filter>
205 <input-model>{input-model}</input-model>
206 <filter-id>1</filter-id>
207 <target-field>{target-field}</target-field>
208 <filter-type>specific-string</filter-type>
209 <specific-string-filter>
210 <specific-string>{string}</specific-string>
211 </specific-string-filter>
214 LINK_COMPUTATION_INSIDE = '''<link-computation xmlns="urn:opendaylight:topology:link:computation" xmlns:n="urn:opendaylight:topology:correlation">
215 <output-model>{output-model}</output-model>
217 <node-topology>topo:1</node-topology>
218 <input-model>{input-model}</input-model>
221 <link-topology>{underlay-topology-id}</link-topology>
222 <input-model>{input-model}</input-model>
224 </link-computation>'''
226 LINK_COMPUTATION = '''<link-computation xmlns="urn:opendaylight:topology:link:computation" xmlns:n="urn:opendaylight:topology:correlation">
227 <output-model>{output-model}</output-model>
229 <node-topology>topo:1</node-topology>
230 <input-model>{input-model}</input-model>
233 <link-topology>{underlay-topology-1-id}</link-topology>
234 <input-model>{input-model}</input-model>
237 <link-topology>{underlay-topology-2-id}</link-topology>
238 <input-model>{input-model}</input-model>
240 </link-computation>'''