diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2022-11-22 11:20:51 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-02-10 10:27:23 +0100 | 
| commit | fa566a94af4c5b70fa917c5ca0c1db6808f676cc (patch) | |
| tree | 8519837d83a9ae3656fb22a575c424d930d1bfec /bgpd/bgp_evpn_private.h | |
| parent | 4a8cd6ad7f3a9b1eabfbc1dd42b8f1b8ba9d3b97 (diff) | |
bgpd: store the route-distinguisher from config as a string
The route-distinguisher string can be expressed in different
ways when the AS number is part of the RD. And the configured
string value has to be kept intact.
The following vty commands store the string value internally:
- router bgp / address-family ipv4 unicast / rd vpn export <>
- router bgp / address-family l2vpn evpn / rd <>
- router bgp / address-family l2vpn evpn / vni <> / rd <>
The vty commands where RD is configured in the below places is
not considered:
- router bgp / rfapi related commands
- router bgp / address-family xxx xxx / network .. rd <>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_evpn_private.h')
| -rw-r--r-- | bgpd/bgp_evpn_private.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index 3f18e4e9f1..30a3ca670b 100644 --- a/bgpd/bgp_evpn_private.h +++ b/bgpd/bgp_evpn_private.h @@ -92,6 +92,7 @@ struct bgpevpn {  	/* RD for this VNI. */  	struct prefix_rd prd; +	char *prd_pretty;  	/* Route type 3 field */  	struct in_addr originator_ip;  | 
