pub enum EvpnRoute {
EadPerEs(EvpnEadPerEs),
EadPerEvi(EvpnEadPerEvi),
MacIp(EvpnMacIp),
Imet(EvpnImet),
Es(EvpnEs),
IpPrefix(EvpnIpPrefixRoute),
}Expand description
A single EVPN NLRI entry (RFC 7432 §7), one of five route types.
This carries the full wire payload — needed for round-trip encoding and
for reflection through a route reflector. For a minimal hashable
identifier suitable as a RIB key, see EvpnRouteKey.
Variants§
EadPerEs(EvpnEadPerEs)
Type 1 — EAD per-ES.
EadPerEvi(EvpnEadPerEvi)
Type 1 — EAD per-EVI.
MacIp(EvpnMacIp)
Type 2 — MAC/IP Advertisement.
Imet(EvpnImet)
Type 3 — Inclusive Multicast Ethernet Tag.
Es(EvpnEs)
Type 4 — Ethernet Segment.
IpPrefix(EvpnIpPrefixRoute)
Type 5 — IP Prefix (RFC 9136).
Implementations§
Source§impl EvpnRoute
impl EvpnRoute
Sourcepub const fn route_type(&self) -> u8
pub const fn route_type(&self) -> u8
Wire route-type byte (1..=5).
Sourcepub fn key(&self) -> EvpnRouteKey
pub fn key(&self) -> EvpnRouteKey
Identifying subset of the route, suitable as a RIB key.
Trait Implementations§
impl Eq for EvpnRoute
impl StructuralPartialEq for EvpnRoute
Auto Trait Implementations§
impl Freeze for EvpnRoute
impl RefUnwindSafe for EvpnRoute
impl Send for EvpnRoute
impl Sync for EvpnRoute
impl Unpin for EvpnRoute
impl UnsafeUnpin for EvpnRoute
impl UnwindSafe for EvpnRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more