Ciao Simone, If i got it correct you are after static mapping of communities to input traffic - given an input interface / vlan or an ingress router or a source MAC address. It seems doable, like you said, adding a machinery like it exists for the source peer ASN. I'd have one question for you:
How would the 'output' look like: one single community or a list of communities (ths may make less sense but still i'd like to double-check with you)? I guess you may be interested in either standard or large communities but not extended, true? And, if true, would you have any preferences among the two? Perhaps the standard ones since you mention 'src_std_comm'? It's not a biggie and i guess i can converge on this relatively soon; can you confrm your priority / urgency? Paolo On Sun, May 24, 2020 at 02:09:24PM +0200, Simone Ricci wrote: > Good Evening, > > I’m trying to configure pmacctd to aggregate inbound traffic by these > primitives: > > peer_src_as, src_as, src_std_comm > > The goal is to see if traffic from certain networks announced by carrier X > with specific communities comes in from X or another hypothetical path (in > that case the communities are not relevant, but that’s another story). > > My configuration is the following: machine running pmacctd sees the traffic > thru 2 NICs, connected to SPAN port on core switches (where the carriers are > linked); only inbound traffic is presented. I also setup a bgp peering with > the border router, and enabled ADD-PATH capability on the session. > > The setup seems to work, the problem being that the community list always > refers to the bgp best path; digging thru the documentation I see that in the > ADD-PATH case, the method to select the relevant entry is looking at the > bgp_next_hop of the flow…but I think that's actually applicable only to > netflow/sflow collectors, right? I were wondering if it’s possible to extend > bgp_peer_src_as_map to set the relevant information, so that every flow will > have the community field populated by leveraging the same mechanics actually > used to populate the peer_src_as field. > > Thank you > Simone > > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists