mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 15:18:06 +00:00
bgpd: MAC Mobility extended community string conversion
Updates: d5b9da8a79cbf2acf287bda2600e86a5a3243c64 Updates: 749513cc9d7bf571b3049931057d544b4111c39d Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
parent
c85c03c7f9
commit
11e2785d09
@ -794,6 +794,18 @@ ecommunity_ecom2str (struct ecommunity *ecom, int format, int filter)
|
|||||||
macaddr[0], macaddr[1], macaddr[2],
|
macaddr[0], macaddr[1], macaddr[2],
|
||||||
macaddr[3], macaddr[4], macaddr[5]);
|
macaddr[3], macaddr[4], macaddr[5]);
|
||||||
}
|
}
|
||||||
|
else if (*pnt == ECOMMUNITY_EVPN_SUBTYPE_MACMOBILITY)
|
||||||
|
{
|
||||||
|
u_int32_t seqnum;
|
||||||
|
u_char flags = *++pnt;
|
||||||
|
|
||||||
|
memcpy (&seqnum, pnt + 2, 4);
|
||||||
|
seqnum = ntohl(seqnum);
|
||||||
|
if (flags & ECOMMUNITY_EVPN_SUBTYPE_MACMOBILITY_FLAG_STICKY)
|
||||||
|
len = sprintf (str_buf + str_pnt, "MM:%u, sticky MAC", seqnum);
|
||||||
|
else
|
||||||
|
len = sprintf (str_buf + str_pnt, "MM:%u", seqnum);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
unk_ecom = 1;
|
unk_ecom = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user