2 Documentation Library to deal with mdsal data models. Initially, as a common place to show and
3 ... debug a list of data models.
5 Library RequestsLibrary
9 @{internal_data_models} ${EMPTY}
10 ${DISPATCHER_TABLE} 17
11 ${INTEGRATION_BRIDGE} br-int
16 [Documentation] Will output a list of mdsal models using ${data_models} list
17 [Arguments] ${controller_ip} ${data_models}=@{internal_data_models} ${restconf_root}=restconf
18 # while feature request in bug 7892 is not done, we will quickly timeout and not retry the model dump get
19 # request. This is because when it's done in a failed cluster state, it could take 20s for the reesponse to
20 # to come back as the internal clustering times out waiting for a leader which will not come. When bug 7892
21 # is resolved, we can remove the timeout=1 and max_retries=0, but likely have to modify the request itself to
22 # pass a timeout to restconf
24 ... model_dump_session
25 ... http://${controller_ip}:${RESTCONFPORT}
27 ... headers=${HEADERS}
30 FOR ${model} IN @{data_models}
31 ${resp}= RequestsLibrary.Get Request model_dump_session ${restconf_root}/${model}
32 ${pretty_output}= To Json ${resp.text} pretty_print=True
36 Verify No Ingress Dispatcher Non-Default Flow Entries
37 [Documentation] Verify the ingress dispatcher table has no non-default flows after neutron was cleaned up
39 ${flow_output}= Run Command On Remote System
41 ... sudo ovs-ofctl -O OpenFlow13 dump-flows ${INTEGRATION_BRIDGE} table=${DISPATCHER_TABLE} | grep -v "priority=0"
43 #Should Not Contain ${flow_output} table=${DISPATCHER_TABLE} # Skipping test verification until bug 7451 is resolved