Hi Sebastien,

aggregate includes the peer_src_as primitive, hence you must provide a
bgp_peer_src_as_type directive aswell (which is commented out in the config
you posted). 

The easiest to start with is: "bgp_peer_src_as_type: bgp". Easy because you
don't have to do much more; although it will pose an issue with asymmetrical
routing. 

Hence, "bgp_peer_src_as_type: map" allows you to use a map (reloadable at
runtime) for the task where you can associate a combination of lookup keys,
ie. input interface, source MAC address, to a source peer-AS. This can get
far more precise but requires you to script to compose the map (time-driven
or event-driven).

Cheers,
Paolo


On Sat, Jan 22, 2011 at 10:35:31AM +0100, S?bastien Cramatte wrote:
> Hello,
> 
> I've tried to setup nfacctd  with BGP following wiki example  but when we
> start it  it return this error :
> 
> #nfacctd -f ./nfacctd.conf
> ERROR: At least one of the following primitives is in use but its source
> type is not specified:
>        peer_src_as     =>  bgp_peer_src_as_type
>        src_as_path     =>  bgp_src_as_path_type
>        src_std_comm    =>  bgp_src_std_comm_type
>        src_ext_comm    =>  bgp_src_ext_comm_type
>        src_local_pref  =>  bgp_src_local_pref_type
>        src_med         =>  bgp_src_med_type
> 
> 
> ---- this is our current configuration ----
> 
> daemonize: false
> debug: true
> 
> nfacctd_ip: xx.xx.xx.xx
> nfacctd_port: 2100
> nfacctd_time_new: true
> 
> plugins: mysql[5mins], mysql[hourly]
> 
> sql_db: pmacct
> sql_passwd: pmacct
> sql_user: pmacct
> 
> sql_optimize_clauses: true
> sql_dont_try_update: true
> sql_multi_values: 1024000
> 
> sql_history_roundoff[5mins]: m
> sql_history[5mins]: 5m
> sql_refresh_time[5mins]: 300
> sql_table[5mins]: acct_bgp_5mins
> 
> sql_history_roundoff[hourly]: h
> sql_history[hourly]: 1h
> sql_refresh_time[hourly]: 3600
> sql_table[hourly]: acct_bgp_1hr
> 
> bgp_daemon: true
> bgp_daemon_ip: xx.xx.xx.xx
> bgp_daemon_max_peers: 100
> nfacctd_as_new: bgp
> 
> !bgp_peer_src_as_type: map
> !bgp_peer_src_as_map: /etc/pmacct/peers.map
> 
> plugin_buffer_size: 10240
> plugin_pipe_size: 1024000
> aggregate: tag, src_as, dst_as, peer_src_as, peer_dst_as, peer_src_ip,
> peer_dst_ip, local_pref, as_path
> -----
> 
> Thank you for your help

> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to