Library DateTime
Resource ../../../libraries/BGPcliKeywords.robot
Resource ../../../libraries/BgpOperations.robot
+Resource ../../../libraries/CompareStream.robot
Resource ../../../libraries/KarafKeywords.robot
Resource ../../../libraries/SetupUtils.robot
Resource ../../../libraries/SSHKeywords.robot
${SKIP_PARAMS} --skipattr
${RIB_INSTANCE} example-bgp-rib
${PROTOCOL_OPENCONFIG} ${RIB_INSTANCE}
+${OLD_ROUTE_KEY} [0, 5, 0, 21, 7, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 0, 1, 0, 1, 5, 6, 7, 8]
+${NEW_ROUTE_KEY} AAUAFQcAAAAAAAAAAQECAwQAAQABBQYHCA==
*** Test Cases ***
TC1_Configure_iBGP_Peer
TC2_Check_Example_Bgp_Rib
[Documentation] Check RIB for linkstate-route(s) and check all of their attributes.
[Tags] critical
- &{mapping} BuiltIn.Create_Dictionary IP=${TOOLS_SYSTEM_IP}
+ ${route_key} = CompareStream.Set_Variable_If_At_Least_Neon ${NEW_ROUTE_KEY} ${OLD_ROUTE_KEY}
+ &{mapping} BuiltIn.Create_Dictionary IP=${TOOLS_SYSTEM_IP} ROUTE_KEY=${route_key}
BuiltIn.Wait_Until_Keyword_Succeeds ${DEFAULT_RIB_CHECK_TIMEOUT} ${DEFAULT_RIB_CHECK_PERIOD} TemplatedRequests.Get_As_Json_Templated ${BGP_VARIABLES_FOLDER}/lsp/effective_rib_in mapping=${mapping} session=${CONFIG_SESSION}
... verify=True
"linkstate-route": [
{
"path-id": 0,
- "route-key": "[0, 5, 0, 21, 7, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 0, 1, 0, 1, 5, 6, 7, 8]",
+ "route-key": "$ROUTE_KEY",
"tunnel-id": 1,
"lsp-id": 1,
"ipv4-tunnel-endpoint-address": "5.6.7.8",