mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-19 04:38:32 +00:00
bgpd: remove dead code for evpn
`is_vni_param_configured()` is used to check whether RD/RT configured for specific evpn vni. There seems to be no need for this mixed check. No caller for about 5 years, just remove it. Signed-off-by: anlan_cs <vic.lan@pica8.com>
This commit is contained in:
parent
52093e0f0e
commit
e6f88442fe
@ -316,12 +316,6 @@ static inline int is_export_rt_configured(struct bgpevpn *vpn)
|
|||||||
return (CHECK_FLAG(vpn->flags, VNI_FLAG_EXPRT_CFGD));
|
return (CHECK_FLAG(vpn->flags, VNI_FLAG_EXPRT_CFGD));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int is_vni_param_configured(struct bgpevpn *vpn)
|
|
||||||
{
|
|
||||||
return (is_rd_configured(vpn) || is_import_rt_configured(vpn)
|
|
||||||
|| is_export_rt_configured(vpn));
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void encode_es_rt_extcomm(struct ecommunity_val *eval,
|
static inline void encode_es_rt_extcomm(struct ecommunity_val *eval,
|
||||||
struct ethaddr *mac)
|
struct ethaddr *mac)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user