summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_flowspec_vty.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-11-27 16:32:45 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-11-30 15:29:43 +0100
commit2551b26e1c597476b4b96a13791e0ad976406653 (patch)
tree22ef095363fd045804e3b47504e99d45d46a4ab2 /bgpd/bgp_flowspec_vty.c
parentzebra: handle neighbor delete from kernel for ipv4 link-local (diff)
downloadfrr-2551b26e1c597476b4b96a13791e0ad976406653.tar.xz
frr-2551b26e1c597476b4b96a13791e0ad976406653.zip
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>
Diffstat (limited to 'bgpd/bgp_flowspec_vty.c')
-rw-r--r--bgpd/bgp_flowspec_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c
index 4fb055bcc..9c230d112 100644
--- a/bgpd/bgp_flowspec_vty.c
+++ b/bgpd/bgp_flowspec_vty.c
@@ -315,7 +315,8 @@ void route_vty_out_flowspec(struct vty *vty, struct prefix *p,
}
if (attr->nexthop.s_addr != 0 &&
display == NLRI_STRING_FORMAT_LARGE)
- vty_out(vty, "\tNH %-16s\n", inet_ntoa(attr->nexthop));
+ vty_out(vty, "\tNLRI NH %-16s\n",
+ inet_ntoa(attr->nexthop));
XFREE(MTYPE_ECOMMUNITY_STR, s);
}
peer_uptime(path->uptime, timebuf, BGP_UPTIME_LEN, 0, NULL);