Verify Data Reported
[Documentation] Verifies if the tool reported expected data
&{mapping} BuiltIn.Create_Dictionary TOOL_IP=${TOOLS_SYSTEM_IP}
- BuiltIn.Wait_Until_Keyword_Succeeds 3x 2s TemplatedRequests.Get_As_Json_Templated folder=${BGP_BMP_DIR} mapping=${mapping} session=${CONFIG_SESSION}
+ ${bmp_dir}= CompareStream.Set_Variable_If_At_Least_Boron ${BGP_BMP_DIR} ${BGP_BMP_DIR}_Be
+ BuiltIn.Wait_Until_Keyword_Succeeds 3x 2s TemplatedRequests.Get_As_Json_Templated folder=${bmp_dir} mapping=${mapping} session=${CONFIG_SESSION}
... verify=True
Stop_Bmp_Mock
--- /dev/null
+{
+ "bmp-monitor": {
+ "monitor": [
+ {
+ "monitor-id": "example-bmp-monitor",
+ "router": [
+ {
+ "router-id": "$TOOL_IP",
+ "peer": [
+ {
+ "peer-id": "1.1.1.1",
+ "as": 65431,
+ "address": "1.1.1.1",
+ "bgp-id": "1.1.1.1",
+ "pre-policy-rib": {
+ "tables": [
+ {
+ "afi": "bgp-types:ipv4-address-family",
+ "safi": "bgp-types:unicast-subsequent-address-family",
+ "bgp-inet:ipv4-routes": {},
+ "attributes": {
+ "uptodate": false
+ }
+ }
+ ]
+ },
+ "peer-session": {
+ "remote-port": 179,
+ "status": "up",
+ "local-address": "$TOOL_IP",
+ "timestamp-sec": 0,
+ "local-port": 179
+ },
+ "post-policy-rib": {
+ "tables": [
+ {
+ "afi": "bgp-types:ipv4-address-family",
+ "safi": "bgp-types:unicast-subsequent-address-family",
+ "bgp-inet:ipv4-routes": {},
+ "attributes": {
+ "uptodate": false
+ }
+ }
+ ]
+ },
+ "type": "global"
+ }
+ ],
+ "status": "up",
+ "info": "",
+ "description": "OpenDaylight",
+ "name": "BMP mock"
+ }
+ ]
+ }
+ ]
+ }
+}