summaryrefslogtreecommitdiff
path: root/bgpd/bgp_route.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-11-25 12:24:15 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-02-10 10:27:23 +0100
commitc1aa9e7f905e2ee033e972cda60e5497f3062884 (patch)
treed63e94a65f78b0707e5fff3ba9f9fa010354c472 /bgpd/bgp_route.h
parentcd304769accd62ae6b244b7f1ab74e313ecaab2d (diff)
bgpd: handle network rd parameter in network configuration
The bgp network command creates static routes with an optional route-distinguisher parameter for VPN and EVPN address families. Store the rd parameter in those static routes. This will be used by the 'show running-config' later. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_route.h')
-rw-r--r--bgpd/bgp_route.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h
index 452282926f..441f84e115 100644
--- a/bgpd/bgp_route.h
+++ b/bgpd/bgp_route.h
@@ -370,6 +370,7 @@ struct bgp_static {
/* Route Distinguisher */
struct prefix_rd prd;
+ char *prd_pretty;
/* MPLS label. */
mpls_label_t label;