Hi Darren,

You can do something like this:

# birdc show route all table roas4 where net.asn=13414
BIRD 2.0.8 ready.
Table roas4:
69.195.191.0/24-24 AS13414  [rpki_mer_a 2021-08-18] * (100)
        Type: RPKI univ

The docs have details on this here (under the prefix type, then NET_ROA4 / NET_ROA6) - https://bird.network.cz/?get_doc&v=20&f=bird-5.html#ss5.2

Thanks,

Basil


On 19/09/2021 22:00, Darren O'Connor wrote:
I have an rpki-rtr session to my bird instance. All v4 roasĀ go to a table called roa_v4, and v6 goes to roa_v6 - Is there a way in a single query to show me all ROAs from an ASN without listing them all?

Right now I'm doing something like this, which is extremely messy:
birdc 'show route all table roa_v4' | grep AS13414

It would be ideal to have something like show route all table roa_v4 source 13414- Am I missing something here?

Thanks
Darren

Reply via email to