Enum bgpkit_parser::models::AttrType
source · #[repr(u8)]pub enum AttrType {
Show 33 variants
RESERVED = 0,
ORIGIN = 1,
AS_PATH = 2,
NEXT_HOP = 3,
MULTI_EXIT_DISCRIMINATOR = 4,
LOCAL_PREFERENCE = 5,
ATOMIC_AGGREGATE = 6,
AGGREGATOR = 7,
COMMUNITIES = 8,
ORIGINATOR_ID = 9,
CLUSTER_LIST = 10,
CLUSTER_ID = 13,
MP_REACHABLE_NLRI = 14,
MP_UNREACHABLE_NLRI = 15,
EXTENDED_COMMUNITIES = 16,
AS4_PATH = 17,
AS4_AGGREGATOR = 18,
PMSI_TUNNEL = 22,
TUNNEL_ENCAPSULATION = 23,
TRAFFIC_ENGINEERING = 24,
IPV6_ADDRESS_SPECIFIC_EXTENDED_COMMUNITIES = 25,
AIGP = 26,
PE_DISTINGUISHER_LABELS = 27,
BGP_LS_ATTRIBUTE = 29,
LARGE_COMMUNITIES = 32,
BGPSEC_PATH = 33,
ONLY_TO_CUSTOMER = 35,
SFP_ATTRIBUTE = 37,
BFD_DISCRIMINATOR = 38,
BGP_PREFIX_SID = 40,
ATTR_SET = 128,
DEVELOPMENT = 255,
Unknown(u8),
}
Expand description
Attribute types.
All attributes currently defined and not Unassigned or Deprecated are included here. To see the full list, check out IANA at: https://www.iana.org/assignments/bgp-parameters/bgp-parameters.xhtml#bgp-parameters-2
Variants§
RESERVED = 0
ORIGIN = 1
AS_PATH = 2
NEXT_HOP = 3
MULTI_EXIT_DISCRIMINATOR = 4
LOCAL_PREFERENCE = 5
ATOMIC_AGGREGATE = 6
AGGREGATOR = 7
COMMUNITIES = 8
ORIGINATOR_ID = 9
CLUSTER_LIST = 10
CLUSTER_ID = 13
MP_REACHABLE_NLRI = 14
MP_UNREACHABLE_NLRI = 15
EXTENDED_COMMUNITIES = 16
AS4_PATH = 17
AS4_AGGREGATOR = 18
PMSI_TUNNEL = 22
TUNNEL_ENCAPSULATION = 23
TRAFFIC_ENGINEERING = 24
IPV6_ADDRESS_SPECIFIC_EXTENDED_COMMUNITIES = 25
AIGP = 26
PE_DISTINGUISHER_LABELS = 27
BGP_LS_ATTRIBUTE = 29
LARGE_COMMUNITIES = 32
BGPSEC_PATH = 33
ONLY_TO_CUSTOMER = 35
SFP_ATTRIBUTE = 37
BFD_DISCRIMINATOR = 38
BGP_PREFIX_SID = 40
ATTR_SET = 128
DEVELOPMENT = 255
Unknown(u8)
Catch all for any unknown attribute types
Trait Implementations§
source§impl FromPrimitive for AttrType
impl FromPrimitive for AttrType
source§impl Ord for AttrType
impl Ord for AttrType
source§impl PartialEq for AttrType
impl PartialEq for AttrType
source§impl PartialOrd for AttrType
impl PartialOrd for AttrType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AttrType
impl Eq for AttrType
impl StructuralPartialEq for AttrType
Auto Trait Implementations§
impl Freeze for AttrType
impl RefUnwindSafe for AttrType
impl Send for AttrType
impl Sync for AttrType
impl Unpin for AttrType
impl UnwindSafe for AttrType
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.