]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: add new draft for redirect ip for flowspec
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Nov 2018 15:32:45 +0000 (16:32 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Nov 2018 14:29:43 +0000 (15:29 +0100)
commit2551b26e1c597476b4b96a13791e0ad976406653
tree22ef095363fd045804e3b47504e99d45d46a4ab2
parentf17b99ed1709c8e6cc940d3dbad737d3be21ddc4
bgpd: add new draft for redirect ip for flowspec

that new option will overwrite simpson draft. There is a new ecommunity
option whose type is 0x1 and subtype is 0xc. That option is defined
here on iana.org/assignments/bgp-extended-communities page:
- bgp-extended-communities.xhtml#trans-ipv4
It contains the IP address to redirect traffic to. The understanding of
the draft is the following one:
- if that community is only present, then the ip contained inside will
be chosen as nexthop.
- if that community is provided along with simpson extended community,
then only the new redirect ip draft will be used. however, both will be
displayed.
- in other cases, if there is only the simpson extended community, then
the nexthop IP of the NLRI will be chosen.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
bgpd/bgp_flowspec_vty.c
bgpd/bgp_pbr.c