mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
lib: restore pre-evpn output behavior
If an EVPN entry is detected, and type is not route type 5, displays the Ethernet MAC configured, as it was before evpn is introduced. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
63ca1cde19
commit
66ef4ee487
@ -883,6 +883,11 @@ prefix2str (union prefixconstptr pu, char *str, int size)
|
||||
else
|
||||
{
|
||||
sprintf (str, "UNK AF_ETHER prefix");
|
||||
snprintf(str, size, "%02x:%02x:%02x:%02x:%02x:%02x/%d",
|
||||
p->u.prefix_eth.octet[0], p->u.prefix_eth.octet[1],
|
||||
p->u.prefix_eth.octet[2], p->u.prefix_eth.octet[3],
|
||||
p->u.prefix_eth.octet[4], p->u.prefix_eth.octet[5],
|
||||
p->prefixlen);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user