Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: Fix up improper handling of nexthops for nexthop tracking #17076

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

*: Fix up improper handling of nexthops for nexthop tracking

f26fd53
Select commit
Loading
Failed to load commit list.
Open

*: Fix up improper handling of nexthops for nexthop tracking #17076

*: Fix up improper handling of nexthops for nexthop tracking
f26fd53
Select commit
Loading
Failed to load commit list.
NetDEF CI Pull Requests Testing / [CI] Basic Tests failed Oct 11, 2024 in 1s

Basic Tests summary

➡️ Jobs queued: 0/49

➡️ Jobs in progress: 0/49

✖️ Jobs Failure: 5/49

Failed: New backtraces found in: /tmp/topotests/isis_sr_te_topo1.test_isis_sr_te_topo1/rt6/bgpd.log, /tmp/topotests/isis_sr_te_topo1.test_isis_sr_te_topo1/rt1/bgpd.log
E   Failed: New backtraces found in: /tmp/topotests/isis_sr_te_topo1.test_isis_sr_te_topo1/rt6/bgpd.log, /tmp/topotests/isis_sr_te_topo1.test_isis_sr_te_topo1/rt1/bgpd.log
E   AssertionError: "rt1" JSON output mismatches the expected result
   assert Generated JSON diff error report:
     
     > $->9.9.9.2/32: expected has the following element at index 0 which is not present in output: 
     
     	{
     	    "prefix": "9.9.9.2/32",
     	    "protocol": "bgp",
     	    "installed": true,
     	    "nexthops": [
     	        {
     	            "ip": "6.6.6.6",
     	            "afi": "ipv4",
     	            "active": true,
     	            "recursive": true,
     	            "srteColor": 1
     	        },
     	        {
     	            "fib": true,
     	            "ip": "10.0.1.3",
     	            "afi": "ipv4",
     	            "interfaceName": "eth-sw1",
     	            "active": true,
     	            "labels": [
     	                16050,
     	                16060
     	            ]
     	        }
     	    ]
     	}
     
     	Closest match in output is at index 0 with the following errors: 
     
     	> $->9.9.9.2/32[0]->nexthops: expected has the following element at index 1 which is not present in output: 
     	
     		{
     		    "fib": true,
     		    "ip": "10.0.1.3",
     		    "afi": "ipv4",
     		    "interfaceName": "eth-sw1",
     		    "active": true,
     		    "labels": [
     		        16050,
     		        16060
     		    ]
     		}
     	
     		Closest match in output is at index 1 with the following errors: 
     	
     		> $->9.9.9.2/32[0]->nexthops[1]->labels: output has Array of length 1 but in expected it is of length 2
E   AssertionError: "rt1" JSON output mismatches the expected result
   assert Generated JSON diff error report:
     
     > $->9.9.9.2/32: expected has the following element at index 0 which is not present in output: 
     
     	{
     	    "prefix": "9.9.9.2/32",
     	    "protocol": "bgp",
     	    "installed": true,
     	    "nexthops": [
     	        {
     	            "ip": "6.6.6.6",
     	            "afi": "ipv4",
     	            "active": true,
     	            "recursive": true,
     	            "srteColor": 1
     	        },
     	        {
     	            "fib": true,
     	            "ip": "10.0.1.3",
     	            "afi": "ipv4",
     	            "interfaceName": "eth-sw1",
     	            "active": true,
     	            "labels": [
     	                16050,
     	                16060
     	            ]
     	        }
     	    ]
     	}
     
     	Closest match in output is at index 0 with the following errors: 
     
     	> $->9.9.9.2/32[0]->nexthops: expected has the following element at index 1 which is not present in output: 
     	
     		{
     		    "fib": true,
     		    "ip": "10.0.1.3",
     		    "afi": "ipv4",
     		    "interfaceName": "eth-sw1",
     		    "active": true,
     		    "labels": [
     		        16050,
     		        16060
     		    ]
     		}
     	
     		Closest match in output is at index 1 with the following errors: 
     	
     		> $->9.9.9.2/32[0]->nexthops[1]->labels: output has Array of length 1 but in expected it is of length 2
E   AssertionError: "rt1" JSON output mismatches the expected result
   assert Generated JSON diff error report:
     
     > $->9.9.9.2/32: expected has the following element at index 0 which is not present in output: 
     
     	{
     	    "prefix": "9.9.9.2/32",
     	    "protocol": "bgp",
     	    "installed": true,
     	    "nexthops": [
     	        {
     	            "ip": "6.6.6.6",
     	            "afi": "ipv4",
     	            "active": true,
     	            "recursive": true,
     	            "srteColor": 1
     	        },
     	        {
     	            "fib": true,
     	            "ip": "10.0.1.3",
     	            "afi": "ipv4",
     	            "interfaceName": "eth-sw1",
     	            "active": true,
     	            "labels": [
     	                16050,
     	                16060
     	            ]
     	        }
     	    ]
     	}
     
     	Closest match in output is at index 0 with the following errors: 
     
     	> $->9.9.9.2/32[0]->nexthops: expected has the following element at index 1 which is not present in output: 
     	
     		{
     		    "fib": true,
     		    "ip": "10.0.1.3",
     		    "afi": "ipv4",
     		    "interfaceName": "eth-sw1",
     		    "active": true,
     		    "labels": [
     		        16050,
     		        16060
     		    ]
     		}
     	
     		Closest match in output is at index 1 with the following errors: 
     	
     		> $->9.9.9.2/32[0]->nexthops[1]->labels: output has Array of length 1 but in expected it is of length 2

✔️ Jobs Success: 44/49

Details at https://ci1.netdef.org/browse/FRR-PULLREQ3-5446.