Hello gobgp experts,

I am trying to control routes injected by gobgp to be advertised to different 
peers (based on Nexthop or community strings). But am running into issues and 
need help here.

To apply policy for a peer, I understand that it needs to be 
route-server-client. Have configured that. But when peer is in this mode, it 
stops receiving any updates. I see routes in the global rib, but not in peer 
specific rib. What will make routes appear in neighbor’s local rib ? What 
configs I need to make this work ?

root@route-mgr:~/configs# gobgp neighbor
Peer         AS  Up/Down State       |#Received  Accepted
10.99.1.1 65001 00:10:10 Establ      |        0         0   => 
remote-server-client is true
10.99.2.2 65002 00:10:10 Establ      |        0         0   => 
remote-server-client is false

root@route-mgr:~/configs# gobgp global rib
   Network              Next Hop             AS_PATH              Age        
Attrs
*> 10.10.1.22/32        10.1.2.11                                 00:21:09   
[{Origin: e} {Communities: 65001:100}]
*> 10.10.1.33/32        10.1.2.11                                 00:19:21   
[{Origin: e} {Communities: 65001:100}]
root@route-mgr:~/configs#
root@route-mgr:~/configs#
root@route-mgr:~/configs# gobgp neighbor 10.99.1.1 policy import
Import policy:
Default: ACCEPT
Name policy1:
    StatementName pLeaf1:
      Conditions:
        NeighborSet: any ns-leaf1
      Actions:
         Accept

root@route-mgr:~/configs# gobgp neighbor 10.99.1.1 local
Network not in table
root@route-mgr:~/configs#
root@route-mgr:~/configs# gobgp neighbor 10.99.1.1 adj-in
Network not in table
root@route-mgr:~/configs#
root@route-mgr:~/configs# gobgp neighbor 10.99.1.1 adj-out
Network not in table
root@route-mgr:~/configs# gobgp neighbor 10.99.2.2 local
rpc error: code = Unknown desc = Neighbor 10.99.2.2 doesn't have local rib
root@route-mgr:~/configs#
root@route-mgr:~/configs# gobgp neighbor 10.99.2.2 adj-out
   ID  Network              Next Hop             AS_PATH              Attrs
   1   10.10.1.22/32        10.1.2.11            65100                [{Origin: 
e} {Communities: 65001:100}]
   1   10.10.1.33/32        10.1.2.11            65100                [{Origin: 
e} {Communities: 65001:100}]

Thanks
--
Sonum

_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel

Reply via email to