Do not restart/cleanup OVS in init code
[integration/test.git] / csit / suites / topoprocessing / basic-topology-operations / 070_Underlay_update.robot
1 *** Settings ***
2 Documentation     Test suite to verify update behaviour during different topoprocessing operations on NT and inventory models.
3 ...               Before test starts, configurational file have to be rewriten to change listners registration datastore type from CONFIG_API to OPERATIONAL_API.
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 ...               Suite setup also installs features required for tested models and clears karaf logs for further synchronization. Tests themselves send configurational
6 ...               xmls and verify output. Topology-id on the end of each urls must match topology-id from xml. Yang models of components in topology are defined in xmls.
7 Suite Setup       Setup Environment
8 Suite Teardown    Clean Environment
9 Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
10 Test Teardown     Refresh Underlay Topologies And Delete Overlay Topology
11 Library           RequestsLibrary
12 Library           SSHLibrary
13 Library           XML
14 Variables         ../../../variables/topoprocessing/TopologyRequests.py
15 Variables         ../../../variables/topoprocessing/TargetFields.py
16 Variables         ../../../variables/Variables.py
17 Resource          ../../../libraries/KarafKeywords.robot
18 Resource          ../../../libraries/Utils.robot
19 Resource          ../../../libraries/TopoprocessingKeywords.robot
20
21 *** Test Cases ***
22 Unification Node Update
23     [Documentation]    Test processing of updates using unification operation on Network Topology model
24     #Create the original topology
25     ${model}    Set Variable    network-topology-model
26     ${request}    Prepare Unification Topology Request    ${UNIFICATION_NT}    ${model}    node    network-topo:1    network-topo:2
27     ${request}    Insert Target Field    ${request}    0    ${ISIS_NODE_TE_ROUTER_ID_IPV4}    0
28     ${request}    Insert Target Field    ${request}    1    ${ISIS_NODE_TE_ROUTER_ID_IPV4}    0
29     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
30     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=8    supporting-node_count=10
31     ...    tp_count=14    tp-ref_count=14
32     #Update a node, expecting a unification of two nodes into one
33     ${node}    Create Isis Node    bgp:1    router-id-ipv4=192.168.1.2
34     Basic Request Put    ${node}    network-topology:network-topology/topology/network-topo:1/node/bgp:1
35     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=7    supporting-node_count=10
36     ...    tp_count=11    tp-ref_count=11
37     : FOR    ${index}    IN RANGE    1    11
38     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
39     Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:2    bgp:1
40     #Update a unified node, expecting creation of a new overlay node
41     ${node}    Create Isis Node    bgp:3    router-id-ipv4=192.168.3.1
42     Basic Request Put    ${node}    network-topology:network-topology/topology/network-topo:1/node/bgp:3
43     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=8    supporting-node_count=10
44     ...    tp_count=9    tp-ref_count=9
45     : FOR    ${index}    IN RANGE    1    11
46     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
47
48 Unification Node Inventory
49     [Documentation]    Test processing of updates using unification operation on Inventory model
50     ${model}    Set Variable    opendaylight-inventory-model
51     ${request}    Prepare Unification Topology Request    ${UNIFICATION_NT}    ${model}    node    openflow-topo:1    openflow-topo:2
52     ${request}    Insert Target Field    ${request}    0    ${OPENFLOW_NODE_IP_ADDRESS}    0
53     ${request}    Insert Target Field    ${request}    1    ${OPENFLOW_NODE_IP_ADDRESS}    0
54     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
55     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=7    supporting-node_count=10
56     ...    tp_count=12    tp-ref_count=12
57     #Update a node, expecting unification of two nodes into one
58     ${node}    Create Openflow Node    openflow:2    192.168.1.1
59     Basic Request Put    ${node}    opendaylight-inventory:nodes/node/openflow:2
60     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=6    supporting-node_count=10
61     ...    tp_count=12    tp-ref_count=12
62     : FOR    ${index}    IN RANGE    1    11
63     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
64     Check Aggregated Node in Topology    ${model}    ${resp.content}    5    of-node:2    of-node:6    of-node:1
65     #Update a unified node, expecting creation of a new overlay node
66     ${node}    Create Openflow Node    openflow:4    192.168.3.1
67     Basic Request Put    ${node}    opendaylight-inventory:nodes/node/openflow:4
68     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=7    supporting-node_count=10
69     ...    tp_count=12    tp-ref_count=12
70     : FOR    ${index}    IN RANGE    1    11
71     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
72
73 Filtration Range Number Node Update Network Topology Model
74     ${model}    Set Variable    network-topology-model
75     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    ${model}    node    network-topo:2
76     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${OVSDB_OVS_VERSION}
77     ${request}    Set Range Number Filter    ${request}    20    25
78     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
79     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=4    supporting-node_count=4
80     ...    node-ref_count=4    tp_count=5    tp-ref_count=5
81     ${request}    Create Isis Node    bgp:7    17
82     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:2/node/bgp:7
83     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=3    supporting-node_count=3
84     ...    node-ref_count=3    tp_count=3    tp-ref_count=3
85     : FOR    ${index}    IN RANGE    8    11
86     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
87     Should Not Contain    ${resp.content}    <node-ref>bgp:7</node-ref>
88     ${topology_id}    Set Variable    network-topo:2
89     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:8    tp:8:1    tp:8:1
90     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:9    tp:9:1    tp:9:1
91     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:10    tp:10:1    tp:10:1
92     ${request}    Create Isis Node    bgp:7    23
93     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:2/node/bgp:7
94     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=4    supporting-node_count=4
95     ...    node-ref_count=4    tp_count=3    tp-ref_count=3
96     ${request}    Create OVSDB Termination Point    tp:7:1    1119
97     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:1
98     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=4    supporting-node_count=4
99     ...    node-ref_count=4    tp_count=4    tp-ref_count=4
100     : FOR    ${index}    IN RANGE    7    11
101     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
102     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:7    tp:7:1    tp:7:1
103     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:8    tp:8:1    tp:8:1
104     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:9    tp:9:1    tp:9:1
105     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    ${topology_id}    bgp:10    tp:10:1    tp:10:1
106
107 Filtration Range Number Node Update Inventory Model
108     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    opendaylight-inventory-model    node    openflow-topo:2
109     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${OPENFLOW_NODE_SERIAL_NUMBER}
110     ${request}    Set Range Number Filter    ${request}    20    25
111     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
112     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=3    supporting-node_count=3
113     ...    node-ref_count=3    tp_count=0    tp-ref_count=0
114     #Update a Node so it passes filtration
115     ${request}    Create Openflow Node    openflow:7    192.168.2.3    23
116     Basic Request Put    ${request}    opendaylight-inventory:nodes/node/openflow:7
117     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=4    supporting-node_count=4
118     ...    node-ref_count=4    tp_count=0    tp-ref_count=0
119     : FOR    ${index}    IN RANGE    7    11
120     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
121     #Update a Node so it is filtered out
122     ${request}    Create Openflow Node    openflow:7    192.168.2.3    17
123     Basic Request Put    ${request}    opendaylight-inventory:nodes/node/openflow:7
124     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=3    supporting-node_count=3
125     ...    node-ref_count=3    tp_count=0    tp-ref_count=0
126     : FOR    ${index}    IN RANGE    8    11
127     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
128     Should Not Contain    ${resp.content}    <node-ref>of-node:7</node-ref>
129
130 Filtration Range Number Termination Point Update NT
131     [Documentation]    Test processing of updates using range number type of filtration operation on Network Topology model
132     ${model}    Set Variable    network-topology-model
133     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    ${model}    termination-point    network-topo:2
134     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${OVSDB_OFPORT}
135     ${request}    Set Range Number Filter    ${request}    1115    1119
136     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
137     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
138     ...    node-ref_count=5    tp_count=3    tp-ref_count=3
139     #Update a previously out-of-range termination point, so it passes filtration
140     ${terminationPoint}    Create OVSDB Termination Point    tp:8:1    1115
141     Basic Request Put    ${terminationPoint}    network-topology:network-topology/topology/network-topo:2/node/bgp:8/termination-point/tp:8:1
142     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
143     ...    node-ref_count=5    tp_count=4    tp-ref_count=4
144     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    network-topo:2    bgp:8    tp:8:1    tp:8:1
145     #Update a previsouly in-range termination point, so it is filtered out
146     ${terminationPoint}    Create OVSDB Termination Point    tp:7:2    1110
147     Basic Request Put    ${terminationPoint}    network-topology:network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:2
148     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
149     ...    node-ref_count=5    tp_count=3    tp-ref_count=3
150     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    network-topo:2    bgp:7    tp:7:1    tp:7:1
151
152 Filtration Range Number Termination Point Update Inventory
153     [Documentation]    Test processing of updates using range number type of filtration operation on Inventory model
154     ${model}    Set Variable    opendaylight-inventory-model
155     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    ${model}    termination-point    openflow-topo:1
156     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${OPENFLOW_NODE_CONNECTOR_PORT_NUMBER}
157     ${request}    Set Range Number Filter    ${request}    2    4
158     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
159     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
160     ...    node-ref_count=5    tp_count=5    tp-ref_count=5
161     #Update a previously out-of-range termination point, so it passes filtration
162     ${nodeConnector}    Create Openflow Node Connector    openflow:2:1    3
163     Basic Request Put    ${nodeConnector}    opendaylight-inventory:nodes/node/openflow:2/node-connector/openflow:2:1
164     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
165     ...    node-ref_count=5    tp_count=6    tp-ref_count=6
166     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    openflow-topo:1    of-node:2    tp:2:1    tp:2:1
167     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    openflow-topo:1    of-node:2    tp:2:2    tp:2:2
168     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    openflow-topo:1    of-node:2    tp:2:3    tp:2:3
169     #Update an in-range termination point, so it is filtered out
170     ${nodeConnector}    Create Openflow Node Connector    openflow:3:2    5
171     Basic Request Put    ${nodeConnector}    opendaylight-inventory:nodes/node/openflow:3/node-connector/openflow:3:2
172     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
173     ...    node-ref_count=5    tp_count=5    tp-ref_count=5
174     Check Aggregated Termination Point in Node    ${model}    ${resp.content}    openflow-topo:1    of-node:3    tp:3:1    tp:3:1
175
176 Filtration Range Number Link Update Network Topology Model
177     [Documentation]    Tests the processing of link update requests when using a range-number filtration on NT model
178     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    network-topology-model    link    network-topo:1
179     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${IGP_LINK_METRIC}
180     ${request}    Set Range Number Filter    ${request}    11    13
181     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
182     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=3    link-ref_count=3
183     #Filter a link out
184     ${request}    Create Link    link:1:4    bgp:1    bgp:4    linkA    15
185     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:1/link/link:1:4
186     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=2    link-ref_count=2
187     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/network-topo:1/link/link:1:3</link-ref>    1
188     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/network-topo:1/link/link:1:2-1</link-ref>    1
189     Should Not Contain    ${resp.content}    network-topology/topology/network-topo:1/link/link:1:4
190     #Put the link back in
191     ${request}    Create Link    link:1:4    bgp:1    bgp:4    linkA    12
192     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:1/link/link:1:4
193     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=3    link-ref_count=3
194     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/network-topo:1/link/link:1:4</link-ref>    1
195     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/network-topo:1/link/link:1:3</link-ref>    1
196     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/network-topo:1/link/link:1:2-1</link-ref>    1
197
198 Filtration Range Number Link Update Inventory Model
199     [Documentation]    Tests the processing of link update requests when using a range-number filtration on Inventory model
200     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    opendaylight-inventory-model    link    openflow-topo:3
201     ${request}    Insert Filter    ${request}    ${FILTER_RANGE_NUMBER}    ${IGP_LINK_METRIC}
202     ${request}    Set Range Number Filter    ${request}    14    15
203     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
204     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=2    link-ref_count=2
205     ${request}    Create Link    link:11:12    of-node:11    of-node:12    linkB    14
206     Basic Request Put    ${request}    network-topology:network-topology/topology/openflow-topo:3/link/link:11:12
207     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=3    link-ref_count=3
208     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/openflow-topo:3/link/link:14:12</link-ref>    1
209     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/openflow-topo:3/link/link:15:13</link-ref>    1
210     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/openflow-topo:3/link/link:11:12</link-ref>    1
211     ${request}    Create Link    link:11:12    of-node:11    of-node:12    linkB    13
212     Basic Request Put    ${request}    network-topology:network-topology/topology/openflow-topo:3/link/link:11:12
213     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    link_count=2    link-ref_count=2
214     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/openflow-topo:3/link/link:14:12</link-ref>    1
215     Should Contain X Times    ${resp.content}    <link-ref>/network-topology/topology/openflow-topo:3/link/link:15:13</link-ref>    1
216
217 Unification Filtration Node Update Inside Network Topology model
218     ${model}    Set Variable    network-topology-model
219     ${request}    Prepare Unification Filtration Inside Topology Request    ${UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE}    ${model}    node    ${ISIS_NODE_TE_ROUTER_ID_IPV4}    network-topo:4
220     ${request}    Insert Filter With ID    ${request}    ${FILTER_IPV4}    ${ISIS_NODE_TE_ROUTER_ID_IPV4}    1
221     ${request}    Insert Apply Filters    ${request}    1    1
222     ${request}    Set IPV4 Filter    ${request}    192.168.2.1/24
223     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
224     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=3
225     ...    node-ref_count=3    tp_count=0    tp-ref_count=0
226     ${request}    Create Isis Node    bgp:17    10    192.168.2.1
227     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:4/node/bgp:17
228     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=4
229     ...    node-ref_count=4    tp_count=0    tp-ref_count=0
230     : FOR    ${index}    IN RANGE    17    21
231     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
232     Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:18    bgp:17    bgp:20
233     ${request}    Create Isis Node    bgp:17    10    192.168.1.2
234     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:4/node/bgp:17
235     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=3
236     ...    node-ref_count=3    tp_count=0    tp-ref_count=0
237     : FOR    ${index}    IN RANGE    18    21
238     \    Should Contain X Times    ${resp.content}    <node-ref>bgp:${index}</node-ref>    1
239     Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:18    bgp:20
240
241 Unification Filtration Node Update Inside Inventory model
242     ${model}    Set Variable    opendaylight-inventory-model
243     ${request}    Prepare Unification Filtration Inside Topology Request    ${UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE}    ${model}    node    ${OPENFLOW_NODE_IP_ADDRESS}    openflow-topo:4
244     ${request}    Insert Filter With ID    ${request}    ${FILTER_IPV4}    ${OPENFLOW_NODE_IP_ADDRESS}    1
245     ${request}    Insert Apply Filters    ${request}    1    1
246     ${request}    Set IPV4 Filter    ${request}    192.168.2.1/24
247     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
248     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=4
249     ...    node-ref_count=4    tp_count=0    tp-ref_count=0
250     ${request}    Create Openflow Node    openflow:17    192.168.1.2
251     Basic Request Put    ${request}    opendaylight-inventory:nodes/node/openflow:17
252     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=3
253     ...    node-ref_count=3    tp_count=0    tp-ref_count=0
254     : FOR    ${index}    IN RANGE    18    21
255     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
256     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:19']/..
257     ${node}    Element to String    ${node}
258     Should Contain X Times    ${node}    <supporting-node>    2
259     Should Contain    ${node}    <node-ref>of-node:19</node-ref>
260     Should Contain    ${node}    <node-ref>of-node:20</node-ref>
261     Should Not Contain    ${node}    <node-ref>of-node:17</node-ref>
262     ${request}    Create Openflow Node    openflow:17    192.168.2.3
263     Basic Request Put    ${request}    opendaylight-inventory:nodes/node/openflow:17
264     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=2    supporting-node_count=4
265     ...    node-ref_count=4    tp_count=0    tp-ref_count=0
266     : FOR    ${index}    IN RANGE    17    21
267     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    1
268     Check Aggregated Node in Topology    ${model}    ${resp.content}    0    of-node:17    of-node:19    of-node:20
269
270 Link Computation Aggregation Inside Update NT
271     [Documentation]    Test of link computation with unification type of aggregation inside on updated nodes from network-topology model
272     ${model}    Set Variable    network-topology-model
273     ${request}    Prepare Unification Inside Topology Request    ${UNIFICATION_NT_AGGREGATE_INSIDE}    ${model}    node    network-topo:6
274     ${request}    Insert Target Field    ${request}    0    ${ISIS_NODE_TE_ROUTER_ID_IPV4}    0
275     ${request}    Insert Link Computation Inside    ${request}    ${LINK_COMPUTATION_INSIDE}    n:network-topology-model    network-topo:6
276     Basic Request Put    ${request}    ${OVERLAY_TOPO_URL}
277     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=4    supporting-node_count=5
278     ...    node-ref_count=5    link_count=4    link-ref_count=4
279     #Divide double nodes from overlay topology
280     ${request}    Create Isis Node    bgp:29    router-id-ipv4=192.168.1.3
281     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:6/node/bgp:29
282     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
283     ...    node-ref_count=5    link_count=4    link-ref_count=4
284     ${node_26}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:26
285     ${node_27}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:27
286     ${node_28}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:28
287     ${node_29}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:29
288     ${node_30}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:30
289     ${topo_id}    Set Variable    network-topo:6
290     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:28:29    ${node_28}    ${node_29}
291     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:26:28    ${node_26}    ${node_28}
292     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:29:30-2    ${node_29}    ${node_30}
293     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:29:30-1    ${node_29}    ${node_30}
294     #Update link to node out of topology
295     ${request}    Create Link    link:28:29    bgp:28    bgp:31    linkB    11
296     Basic Request Put    ${request}    network-topology:network-topology/topology/network-topo:6/link/link:28:29
297     ${resp}    Wait Until Keyword Succeeds    3x    1s    Output Topo Should Be Complete    node_count=5    supporting-node_count=5
298     ...    node-ref_count=5    link_count=3    link-ref_count=3
299     #Refresh node IDs
300     ${node_26}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:26
301     ${node_27}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:27
302     ${node_28}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:28
303     ${node_29}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:29
304     ${node_30}    Check Aggregated Node in Topology    ${model}    ${resp.content}    0    bgp:30
305     Should Not Contain    ${resp.content}    /network-topology/topology/network-topo:6/link/link:28:29
306     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:26:28    ${node_26}    ${node_28}
307     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:29:30-2    ${node_29}    ${node_30}
308     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:29:30-1    ${node_29}    ${node_30}
309     Check Overlay Link Source And Destination    ${model}    ${resp.content}    ${topo_id}    link:29:30-1    ${node_29}    ${node_30}