On Mon, Dec 03, 2018 at 05:59:26PM +0100, Julien Dhaille wrote:
> Hi. I am using bgpd within a rdomain (1).
> After the upgrade to 6.4 stable, I can’t announce prefixes anymore via
> bgpctl :
> 
> router# ps aux -o rtable|grep bgp
> 
> root      4039  0.0  0.1   300  1292 p0  S+p    5:12PM    0:00.00 grep
> bgp              0
> root     68170  0.0  0.2  1056  2060 p2  I+     4:52PM    0:00.01 bgpd
> -dvv             1
> _bgpd    80238  0.0  0.4  4160  4264 p2  I+p    4:52PM    0:00.01 bgpd:
> route deci        1
> _bgpd    26255  0.0  0.2  1456  2164 p2  S+p    4:52PM    0:00.04 bgpd:
> session en      1
> 
> router# route -T1 exec bgpctl network add 10.0.0.1/32 nexthop 10.0.0.20
> prepend-self 11
> or
> router# route -T1 exec bgpctl -s /var/run/bgpd.sock.1 network add
> 10.0.0.1/32 nexthop 10.0.0.20 prepend-self 11
> 
> results in :
> 
> network_add: prefix 10.0.0.1/32 in non-existing rdomain 0
> 
> Am I missing a change or something ?
> 

rde.c,v1.389 from Jul 10, 2018 introduced this "regression".

Can you try this diff :

Index: bgpctl.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpctl/bgpctl.c,v
retrieving revision 1.224
diff -u -p -r1.224 bgpctl.c
--- bgpctl.c    28 Nov 2018 08:33:59 -0000      1.224
+++ bgpctl.c    3 Dec 2018 20:16:45 -0000
@@ -345,6 +345,7 @@ main(int argc, char *argv[])
                bzero(&net, sizeof(net));
                net.prefix = res->addr;
                net.prefixlen = res->prefixlen;
+               net.rtableid = r;
                /* attribute sets are not supported */
                if (res->action == NETWORK_ADD) {
                        imsg_compose(ibuf, IMSG_NETWORK_ADD, 0, 0, -1,

Reply via email to