pub struct EvpnMacIp {
pub rd: RouteDistinguisher,
pub esi: EthernetSegmentIdentifier,
pub ethernet_tag: EthernetTagId,
pub mac: MacAddress,
pub ip: Option<IpAddr>,
pub label1: MplsLabel,
pub label2: Option<MplsLabel>,
}Expand description
Type 2: MAC/IP Advertisement route (RFC 7432 §7.2).
Fields§
§rd: RouteDistinguisherRoute Distinguisher.
esi: EthernetSegmentIdentifierEthernet Segment Identifier (may be ZERO for single-homed CE).
ethernet_tag: EthernetTagIdEthernet Tag identifying the EVI / bridge domain.
mac: MacAddressMAC address being advertised.
ip: Option<IpAddr>Host IP address, if any. Wire length is 0, 4, or 16 bytes.
label1: MplsLabelPrimary MPLS label / VNI (present on all Type 2 routes).
label2: Option<MplsLabel>Secondary label for symmetric IRB (RFC 9135), if present.
Trait Implementations§
impl Eq for EvpnMacIp
Source§impl Ord for EvpnMacIp
impl Ord for EvpnMacIp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EvpnMacIp
impl PartialOrd for EvpnMacIp
impl StructuralPartialEq for EvpnMacIp
Auto Trait Implementations§
impl Freeze for EvpnMacIp
impl RefUnwindSafe for EvpnMacIp
impl Send for EvpnMacIp
impl Sync for EvpnMacIp
impl Unpin for EvpnMacIp
impl UnsafeUnpin for EvpnMacIp
impl UnwindSafe for EvpnMacIp
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