2 Documentation Test suite to verify link computation operation on different models.
3 ... Before test starts, configurational file have to be rewriten to change listners registration datastore type from CONFIGURATION to OPERATIONAL.
4 ... Need for this change is also a reason why main feature (odl-topoprocessing-framework) is installed after file change and not during boot.
5 ... Tests themselves install feature required for specific model, clear karaf logs for futher synchronization, send configurational xmls and verify output.
6 ... Topology-id on the end of each urls must match topology-id from xml. Yang models of components in topology are defined in xmls.
8 Library RequestsLibrary
11 Variables ../../../variables/topoprocessing/TopologyRequests.py
12 Variables ../../../variables/topoprocessing/TargetFields.py
13 Variables ../../../variables/Variables.py
14 Resource ../../../libraries/KarafKeywords.robot
15 Resource ../../../libraries/Utils.robot
16 Resource ../../../libraries/TopoprocessingKeywords.robot
18 Suite Setup Setup Environment
19 Suite Teardown Clean Environment
20 Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
21 Test Teardown Delete Overlay Topology
25 Link Computation Aggregation Inside
26 [Documentation] Test of link computation with unification inside on Network Topology model
27 ${model} Set Variable network-topology-model
28 ${request} Prepare Unification Inside Topology Request
29 ... ${UNIFICATION_NT_AGGREGATE_INSIDE}
33 ${request} Insert Target Field ${request} 0 ${ISIS_NODE_TE_ROUTER_ID_IPV4} 0
34 ${request} Insert Link Computation Inside
36 ... ${LINK_COMPUTATION_INSIDE}
37 ... n:network-topology-model
39 Basic Request Put ${request} ${OVERLAY_TOPO_URL}
40 ${resp} Wait Until Keyword Succeeds
43 ... Output Topo Should Be Complete
45 ... supporting-node_count=5
49 ${overlay_node_id_28_29} Check Aggregated Node in Topology
55 ${overlay_node_id_26} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:26
56 ${overlay_node_id_30} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:30
57 ${overlay_node_id_27} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:27
58 ${topology_id} Set Variable network-topo:6
59 Check Overlay Link Source And Destination
64 ... ${overlay_node_id_26}
65 ... ${overlay_node_id_28_29}
66 Check Overlay Link Source And Destination
71 ... ${overlay_node_id_28_29}
72 ... ${overlay_node_id_28_29}
73 Check Overlay Link Source And Destination
78 ... ${overlay_node_id_28_29}
79 ... ${overlay_node_id_30}
80 Check Overlay Link Source And Destination
85 ... ${overlay_node_id_28_29}
86 ... ${overlay_node_id_30}
88 Link Computation Filtration
89 [Documentation] Test of link computation with filtration on Network Topology model
90 ${model} Set Variable network-topology-model
91 ${request} Prepare Filtration Topology Request ${FILTRATION_NT} ${model} node network-topo:6
92 ${request} Insert Filter ${request} ${FILTER_IPV4} ${ISIS_NODE_TE_ROUTER_ID_IPV4}
93 ${request} Set IPV4 Filter ${request} 192.168.2.1/32
94 ${request} Insert Link Computation Inside
96 ... ${LINK_COMPUTATION_INSIDE}
97 ... n:network-topology-model
99 Basic Request Put ${request} ${OVERLAY_TOPO_URL}
100 ${resp} Wait Until Keyword Succeeds
103 ... Output Topo Should Be Complete
105 ... supporting-node_count=2
109 ${overlay_node_id_28} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:28
110 ${overlay_node_id_29} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:29
111 Check Overlay Link Source And Destination
116 ... ${overlay_node_id_28}
117 ... ${overlay_node_id_29}
119 Link Computation Aggregation Filtration
120 [Documentation] Test of link computation with aggregation filtration on Network Topology model
121 ${model} Set Variable network-topology-model
122 ${target_field} Set Variable ${ISIS_NODE_TE_ROUTER_ID_IPV4}
123 ${request} Prepare Unification Filtration Topology Request
124 ... ${UNIFICATION_FILTRATION_NT}
131 ${request} Insert Filter With ID ${request} ${FILTER_IPV4} ${ISIS_NODE_TE_ROUTER_ID_IPV4} 1
132 ${request} Insert Apply Filters ${request} 1 1
133 ${request} Insert Apply Filters ${request} 2 1
134 ${request} Set IPV4 Filter ${request} 192.168.1.1/24
135 ${request} Insert Link Computation
137 ... ${LINK_COMPUTATION}
138 ... n:network-topology-model
141 Basic Request Put ${request} ${OVERLAY_TOPO_URL}
142 ${resp} Wait Until Keyword Succeeds
145 ... Output Topo Should Be Complete
147 ... supporting-node_count=4
151 ${overlay_node_id_1_26} Check Aggregated Node in Topology ${model} ${resp.content} 3 bgp:26 bgp:1
152 ${overlay_node_id_2_27} Check Aggregated Node in Topology ${model} ${resp.content} 0 bgp:27 bgp:2
153 ${topology_id} Set Variable network-topo:1
154 Check Overlay Link Source And Destination
159 ... ${overlay_node_id_1_26}
160 ... ${overlay_node_id_2_27}
161 Check Overlay Link Source And Destination
166 ... ${overlay_node_id_1_26}
167 ... ${overlay_node_id_2_27}