Hi Joan,

That would be good short-term workaround. networks_file was originally
conceived to support of hierarchies of networks. But indeed this seems
broken, managed to reproduce in lab your issue. Probably the problem is
there for very long since this refers to a section of code untouched
for years. I'll give it a look soon, keep you posted.

Cheers,
Paolo


On Thu, Feb 13, 2014 at 07:01:28PM +0100, Joan wrote:
> Ok, then I will try to adapt the script I used to generate this file,
> because there are lots of routes saved from the bgp summary.
> https://github.com/paololucente/pmacct-contrib/blob/master/st1/quagga_gen_as_network.pl
> 
> 
> 2014-02-13 16:39 GMT+01:00 Adam Bogdan <nelr...@gmail.com>:
> 
> > Hi Joan,
> >
> > The problem is with this 2 lines:
> > 123.123.123.123,55649,223.255.240.0/22
> > 123.123.123.123,55649,223.255.240.0/24
> >
> > Just delete the line with /24 and check then - I had similar problem with
> > overlapping prefixes.
> >
> > Regards
> > Adam
> >
> >
> >
> > 2014-02-13 15:36 GMT+01:00 Joan <aseq...@gmail.com>:
> >
> >> While loading the attached network file, I get this strange errors on the
> >> logs (when debug is enabled), it seems that the networks are not properly
> >> imported (it seems related to the nested networks) but I couldn't simplify
> >> any more the test case.
> >> The problem is that when there are those errors the srcas and dstas never
> >> get populated on the flows.
> >>
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 17766 net: 223.255.235.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 45954 net: 223.255.244.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 45954 net: 223.255.245.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 45954 net: 223.255.246.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 45954 net: 223.255.247.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 55415 net: 223.255.254.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh:  peer asn: 0 asn: 0
> >> net: 0.0.0.0 mask: 0
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] contains a default route
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh:  peer asn: 0 asn: 0
> >> net: 0.0.0.0 mask: 0
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] contains a default route
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh:  peer asn: 0 asn: 0
> >> net: 0.0.0.0 mask: 0
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] contains a default route
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh:  peer asn: 0 asn: 0
> >> net: 0.0.0.0 mask: 0
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] contains a default route
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh:  peer asn: 0 asn: 0
> >> net: 0.0.0.0 mask: 0
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] contains a default route
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 55649 net: 223.255.240.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 55649 net: 223.255.241.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 55649 net: 223.255.242.0 mask: 24
> >> Feb 13 15:31:07 collector pmacctd[29186]: DEBUG (
> >> /etc/pmacct/networks.lst ): [networks table IPv4] nh: 123.123.123.123 peer
> >> asn: 0 asn: 55649 net: 223.255.243.0 mask: 24
> >>
> >>
> >> _______________________________________________
> >> pmacct-discussion mailing list
> >> http://www.pmacct.net/#mailinglists
> >>
> >
> >
> > _______________________________________________
> > pmacct-discussion mailing list
> > http://www.pmacct.net/#mailinglists
> >

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


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

Reply via email to