diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index bcf56d2e6af5..a69d6ee9f02e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6842,6 +6842,10 @@ int bgp_static_set(struct vty *vty, bool negate, const char *ip_str, bgp_static->label = label; bgp_static->prd = prd; + if (rd_str) + bgp_static->prd_pretty = XSTRDUP(MTYPE_BGP, + rd_str); + if (rmap) { XFREE(MTYPE_ROUTE_MAP_NAME, bgp_static->rmap.name);