Hi Jordan, A feature to map MACs to ASNs, ie. equivalent to the networks_file that does IP (prefixes) to ASNs, is not currently available - just to confirm. Adding it needs a bit of work but it's not a big deal, definitely achievable.
The workaround i can propose is to pass through the pre_tag_map infrastructure; use tag as peer_src_as and tag2 as peer_dst_as; the map would be composed as follows (please excuse typos): set_tag=<ASN A> src_mac=<MAC A> jeq=dst set_tag=<ASN B> src_mac=<MAC B> jeq=dst set_tag=<ASN C> src_mac=<MAC C> jeq=dst ... set_tag2=<ASN A> dst_mas=<MAC A> label=dst set_tag2=<ASN B> dst_mas=<MAC B> set_tag2=<ASN C> dst_mas=<MAC C> With further reference on the syntax of a pre_tag_map file available here: https://github.com/pmacct/pmacct/blob/master/examples/pretag.map.example Then your 'aggregate' configuration directive you would look like 'tag, tag2, < .. >'. Please let me know if the work around can work for you for a proof of concept and/or a short-term solution. Cheers, Paolo On Tue, Jan 19, 2016 at 11:28:58AM +0200, Jordan Grigorov (Neterra NMT) wrote: > Hello, > > We are using sfacctd, mysql and BGP daemon capturing IXP traffic. > > We're facing a problem with incorrect BGP data caused by the > multiple RIB of our RS. > > In details there is wrong information in the DB for the primitives > /peer_src_as /and/peer_dst_as/ for some flows as there is only a > single iBGP session between the RS and the sflow collector(in a > single RIB). > As we're unable to bring up iBGP sessions for each RIB is there any > solution for this case? > > > What we intend to do is to create a dynamic file that maps each IXP > member MAC address to his ASN(/peer_dst_as)/ value. > Then for each flow this /peer_dst_as/ value should be obtained from > the file and injected into the DB rather than from the sfacct BGP > daemon. > Is there any option to do this without heavy src code modifications? > > Thank you in advance. > > Kind Regards, > > > -- > --- > > > Jordan Grigorov > > <https://www.linkedin.com/company/neterra> > > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
