Using the API to add a set next-hop for Flowspec

91 views
Skip to first unread message

Russell Kelly

unread,
Oct 20, 2018, 5:16:33 PM10/20/18
to exabgp-users
Hi,

I am trying to set ip next-hop in exabgp using the API.

It seems that redirect <ip address> works fine.

neighbor 23.1.1.33 announce flow route source 1.0.4.1/32 destination 12.1.1.2/32 protocol [ 17 ] source-port [=345] destination-port [=80] redirect 10.10.10.1

But I cannot get the option below to work:

neighbor 23.1.1.33 announce flow route source 1.0.4.1/32 destination 12.1.1.2/32 protocol [ 17 ] source-port [=345] destination-port [=80] redirect-to-nexthop

My config file seems valid and passes the parsing check.

neighbor 23.1.1.11 {
      local-address 192.168.2.10;
      router-id 192.168.2.10;
      adj-rib-out false;
      local-as 64512;
      peer-as 64512;
      group-updates;
      family {
ipv4 unicast;
ipv4 flow;
ipv4 nlri-mpls;
      }
flow {
route test {
next-hop 192.168.1.183;
}
}
      api {
        processes [ http-api ];
      }
      capability {
add-path send;
      }
}

Am I missing something here?  My router does not program any action.

Thanks
Russell

Thomas Mangin

unread,
Oct 21, 2018, 12:45:09 PM10/21/18
to exabgp...@googlegroups.com
Hello,

Sorry I can not look into this right now. Did you look at the examples here to see if any does help ?

Russell Kelly

unread,
Nov 28, 2018, 10:46:13 AM11/28/18
to exabgp-users
Hi Thomas - 

My bad I didn't implement the conf file correctly.

Cheers
Russ
Reply all
Reply to author
Forward
0 new messages