summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_flowspec_vty.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-04-06 13:17:16 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-04-09 11:04:14 +0200
commit026b914a402fd59f900fa386d8fbcfacbafb7f62 (patch)
treeb37be4ebcef3cb3512932f7613df862bab168e3d /bgpd/bgp_flowspec_vty.c
parentbgpd: handle ecom redirect-ip (diff)
downloadfrr-026b914a402fd59f900fa386d8fbcfacbafb7f62.tar.xz
frr-026b914a402fd59f900fa386d8fbcfacbafb7f62.zip
bgpd: the nexthop IP is displayed for FS entries.
Most presumably, the nexthop IP is present, only when ECOM redirect IP is present. The nexthop is displayed. 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, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c
index 247da5d18..7bf11f12a 100644
--- a/bgpd/bgp_flowspec_vty.c
+++ b/bgpd/bgp_flowspec_vty.c
@@ -312,6 +312,9 @@ void route_vty_out_flowspec(struct vty *vty, struct prefix *p,
json_object_array_add(json_paths,
json_ecom_path);
}
+ if (attr->nexthop.s_addr != 0 &&
+ display == NLRI_STRING_FORMAT_LARGE)
+ vty_out(vty, "\tNH %-16s\n", inet_ntoa(attr->nexthop));
XFREE(MTYPE_ECOMMUNITY_STR, s);
}
peer_uptime(binfo->uptime, timebuf, BGP_UPTIME_LEN, 0, NULL);