hello guys,
i cannot see the prefix count received on bgp peer as before, maybe there is a way to see them, but i haven't found info, i see only in peer cache prefix count "0".
thanks a lot
Giulio
I like that - ran out of time... I started in the industry just after v6 came out - and they have been promising v7 since then... they have had plenty of time.I think it is also related to the fact the BGP service was re-written by Mikrotik for version 7 and there was an oversight or they ran out of time?
It is not. See reply #6 and #8.This seems like an easy to fix bug
Yes that would at least be a start... in our network, the filters usually do not really remove routes, they are only a safeguard. And so the count would be fine.
Also, the "you can use a script to retrieve the count" is not easy at all due to another bug:
/routing/route/print count-only correctly prints the total number of routes
/routing/route/print where belongs-to="bgp-IP-xx.xx.xx.xx" and !filtered prints routes from specific neighbors
however the combination /routing/route/print count-only where belongs-to="bgp-IP-xx.xx.xx.xx" and !filtered always prints 0.
It has been admitted by support and noted as something to be fixed in the future, but hey there are many such small and larger issues in BGP and they are present and promised to be fixed for well over a year now... so I don't hold my breath.
/routing/route/print where bgp and belongs-to~"10.1.254.2" and !filtered
Flags: A - ACTIVE; b, a - SLAAC
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
DST-ADDRESS GATEWAY AFI DISTANCE SCOPE TARGET-SCOPE IMMEDIATE-GW
b 10.1.254.0/30 10.1.254.2 ip4 20 40 10 10.1.254.2%ether2
Ab 10.100.0.0/24 10.1.254.2 ip4 20 40 10 10.1.254.2%ether2
Ab 10.100.1.0/24 10.1.254.2 ip4 20 40 10 10.1.254.2%ether2
/routing/route/print count-only where bgp and belongs-to~"10.1.254.2" and !filtered
3
/system script
add dont-require-permissions=no name=bgp-prefixes owner=admin policy=read \
source="/routing/bgp/session {\r\
\n :global prefixes ({});\r\
\n :local maxlen 0;\r\
\n :foreach ses in=[find] do={\r\
\n :set \$remote [get \$ses \"remote.address\"]\r\
\n :set \$name [get \$ses name]\r\
\n :if ([:len \$name] > \$maxlen) do={\r\
\n :set \$maxlen [:len \$name]\r\
\n }\r\
\n :set (\$prefixes->\$name) [/routing/route/print count-only where belongs-to=\"bgp-IP-\$remote\"]\r\
\n }\r\
\n :set \$name \"Session \"\r\
\n :set \$name [:pick \$name 0 \$maxlen]\r\
\n :put \"\"\r\
\n :put \"\$name : Prefixes\"\r\
\n :put \"---------------------------\"\r\
\n :foreach name,prefix in=\$prefixes do={\r\
\n :set \$name (\$name.\" \")\r\
\n :set \$name [:pick \$name 0 \$maxlen]\r\
\n :put \"\$name : \$prefix\"\r\
\n }\r\
\n}\r\
\n"
I don't think it will be fixed. Probably the prefix count field will just disappear.Does anyone know if Mikrotik has plans to fix this?