[irrtoolset]generating import filters with RtConfig
Mark Prior mrp at mrp.net
Fri Nov 5 10:47:49 CET 2004
Francesco Ferreri wrote: > Dear all, > I'm quite new to RtConfig, I would like to know how I can generate > import filters both using prefix lists and as-path lists. > > Playing around with RIPE test database I got this: > if I specify an import policy in such a way: > > import: from ASx accept ASy > > (having a route object for ASy), > then "@RtConfig import ASx <ip-addr-x> ASy <ip-addr-y>" gives me back a > filter based on prefix lists. > > Otherwise, if I specify an import policy (or similar): > > import: from ASx accept <^ASy+$> > > then I get back a filter based on an as-path. > > So the main difference seems to reside in the way the aut-num object is > written: using simple AS names gives prefix list filters, using regular > expressions on AS names gives as-path based filters, am I right ? > Is there a way to combine both things to obtain both types of filters > for the same peering relationship ? import: from ASx accept ASy AND <^ASy$> Mark.