mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
bgpd: Return MED, not local-preference if MED attribute exists (SNMP)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
71a055c9d1
commit
15c3b52f3f
@ -739,7 +739,7 @@ static uint8_t *bgp4v2PathAttrTable(struct variable *v, oid name[],
|
||||
case BGP4V2_NLRI_MED:
|
||||
if (CHECK_FLAG(path->attr->flag,
|
||||
ATTR_FLAG_BIT(BGP_ATTR_MULTI_EXIT_DISC)))
|
||||
return SNMP_INTEGER(path->attr->local_pref);
|
||||
return SNMP_INTEGER(path->attr->med);
|
||||
else
|
||||
return SNMP_INTEGER(0);
|
||||
case BGP4V2_NLRI_ATOMIC_AGGREGATE:
|
||||
|
Loading…
Reference in New Issue
Block a user