<div dir="ltr">When checking ROAs, and the source ASN happens to have an AS-SET, bird does not output the ASN itself.<div><br></div><div>Here is an example without an AS-SET:</div><div><font face="monospace">$ birdc 'show route primary table master4 where roa_check(roa_v4, net, bgp_path.last_nonaggregated) = ROA_INVALID' | grep 186.28<br><a href="http://186.28.232.0/24">186.28.232.0/24</a>      unreachable [BGP1v4 2021-02-11 from 46.30.8.72] * (100) [AS263710i]</font><br></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">Here is an example with an AS-SET:</font></div><div>$ birdc 'show route primary table master4 where roa_check(roa_v4, net, bgp_path.last_nonaggregated) = ROA_INVALID' | grep 185.186<br><a href="http://185.186.206.0/24">185.186.206.0/24</a>     unreachable [BGP3v4 2021-02-07 from 192.110.255.57] * (100) [?]<font face="monospace"><br></font></div><div><br></div><div>The source ASN in the first shows as 263710, but the second shows none at all.</div><div><br></div><div>This is the actual live prefix for the second:</div><div><font face="monospace">bird> show route all for <a href="http://185.186.206.0/24">185.186.206.0/24</a><br>Table master4:<br><a href="http://185.186.206.0/24">185.186.206.0/24</a>     unreachable [BGP3v4 2021-02-07 from 192.110.255.57] * (100) [?]<br>        Type: BGP univ<br>        BGP.origin: Incomplete<br>        BGP.as_path: 13030 8529 28885 {206350}</font><br></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">As the query is specifying last_nonaggregated, I'd expect the output to contain that ASN.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks</font></div><div><font face="arial, sans-serif">D</font></div></div>