Only ipv6 ASN from AS-SET

Nick Hilliard nick at
Mon Nov 15 14:49:57 UTC 2010

On 15/11/2010 15:12, Pawel Nastachowski wrote:
> How get from AS-SET only ASN which has ipv6 prefixes ?

To my knowledge, there's nothing in irrtoolset to do this directly.  You 
can do it indirectly by performing something like this meta shell code:

# retrieve list of ASNs in an AS-SET
peval -no-as AS-SET

# iterate through results
for i in assetresults; do
	echo -n ${i}" " && peval 'afi ipv6.unicast '${i}

This is slightly slow and clunky, but it should work fine.


More information about the irrtoolset mailing list