Basic tests - Unification node inside
[integration/test.git] / csit / variables / topoprocessing / TopologyRequests.py
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>
3                         <correlations>
4                             <output-model>{output-model}</output-model>
5                             <correlation>
6                                 <correlation-id>1</correlation-id>
7                                 <type>{type}</type>
8                                 <correlation-item>{correlation-item}</correlation-item>
9                                 <aggregation>
10                                     <aggregation-type>{aggregation-type}</aggregation-type>
11                                     <mapping>
12                                         <input-model>{input-model}</input-model>
13                                         <underlay-topology>{underlay-topology-id}</underlay-topology>
14                                         <target-field>{target-field}</target-field>
15                                         <aggregate-inside>false</aggregate-inside>
16                                     </mapping>
17                                     <mapping>
18                                         <input-model>{input-model}</input-model>
19                                         <underlay-topology>{underlay-topology-id}</underlay-topology>
20                                         <target-field>{target-field}</target-field>
21                                         <aggregate-inside>false</aggregate-inside>
22                                     </mapping>
23                                 </aggregation>
24                             </correlation>
25                         </correlations>
26                     </topology>'''
27
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>
30                         <correlations>
31                             <output-model>{output-model}</output-model>
32                             <correlation>
33                                 <correlation-id>1</correlation-id>
34                                 <type>{type}</type>
35                                 <correlation-item>{correlation-item}</correlation-item>
36                                 <aggregation>
37                                     <aggregation-type>{aggregation-type}</aggregation-type>
38                                     <mapping>
39                                         <input-model>{input-model}</input-model>
40                                         <underlay-topology>{underlay-topology-id}</underlay-topology>
41                                         <target-field>{target-field}</target-field>
42                                         <aggregate-inside>true</aggregate-inside>
43                                     </mapping>
44                                 </aggregation>
45                             </correlation>
46                         </correlations>
47                     </topology>'''
48
49 FILTRATION_NT = '''<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>
51                     <correlations>
52                         <output-model>{output-model}</output-model>
53                         <correlation>
54                             <correlation-id>1</correlation-id>
55                             <type>filtration-only</type>
56                             <correlation-item>{correlation-item}</correlation-item>
57                             <filtration>
58                                 <underlay-topology>{underlay-topology-id}</underlay-topology>
59                                 <!-- Filter -->
60                             </filtration>
61                         </correlation>
62                     </correlations>
63                 </topology>'''
64
65 SCRIPTING = '''
66 <scripting>
67     <language>{language}</language>
68     <script>
69         {script}
70     </script>
71 </scripting>
72 '''
73
74 FILTER_IPV4 = '''<filter>
75                         <input-model>{input-model}</input-model>
76                         <filter-id>1</filter-id>
77                         <target-field>{target-field}</target-field>
78                         <filter-type>ipv4-address</filter-type>
79                         <ipv4-address-filter>
80                              <ipv4-address>{ipv4}</ipv4-address>
81                         </ipv4-address-filter>
82                  </filter>'''