pub enum BgpValidationWarning {
AttributeFlagsError {
attr_type: AttrType,
expected_flags: u8,
actual_flags: u8,
},
AttributeLengthError {
attr_type: AttrType,
expected_length: Option<usize>,
actual_length: usize,
},
MissingWellKnownAttribute {
attr_type: AttrType,
},
UnrecognizedWellKnownAttribute {
attr_type_code: u8,
},
InvalidOriginAttribute {
value: u8,
},
InvalidNextHopAttribute {
reason: String,
},
MalformedAsPath {
reason: String,
},
OptionalAttributeError {
attr_type: AttrType,
reason: String,
},
DuplicateAttribute {
attr_type: AttrType,
},
InvalidNetworkField {
reason: String,
},
MalformedAttributeList {
reason: String,
},
PartialAttributeError {
attr_type: AttrType,
reason: String,
},
}Expand description
BGP validation warnings for RFC 7606 compliant error handling. These represent non-fatal validation issues that don’t prevent parsing.
Variants§
AttributeFlagsError
Attribute flags conflict with attribute type code (RFC 4271 Section 6.3)
AttributeLengthError
Attribute length conflicts with expected length (RFC 4271 Section 6.3)
MissingWellKnownAttribute
Missing well-known mandatory attribute (RFC 4271 Section 6.3)
UnrecognizedWellKnownAttribute
Unrecognized well-known attribute (RFC 4271 Section 6.3)
InvalidOriginAttribute
Invalid origin attribute value (RFC 4271 Section 6.3)
InvalidNextHopAttribute
Invalid next hop attribute (RFC 4271 Section 6.3)
MalformedAsPath
Malformed AS_PATH attribute (RFC 4271 Section 6.3)
OptionalAttributeError
Optional attribute error (RFC 4271 Section 6.3)
DuplicateAttribute
Attribute appears more than once (RFC 4271 Section 6.3)
InvalidNetworkField
Invalid network field in NLRI (RFC 4271 Section 6.3)
MalformedAttributeList
Malformed attribute list (RFC 4271 Section 6.3)
PartialAttributeError
Partial attribute with errors (RFC 7606)
Trait Implementations§
Source§impl Clone for BgpValidationWarning
impl Clone for BgpValidationWarning
Source§fn clone(&self) -> BgpValidationWarning
fn clone(&self) -> BgpValidationWarning
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BgpValidationWarning
impl Debug for BgpValidationWarning
Source§impl Display for BgpValidationWarning
impl Display for BgpValidationWarning
Source§impl PartialEq for BgpValidationWarning
impl PartialEq for BgpValidationWarning
impl Eq for BgpValidationWarning
impl StructuralPartialEq for BgpValidationWarning
Auto Trait Implementations§
impl Freeze for BgpValidationWarning
impl RefUnwindSafe for BgpValidationWarning
impl Send for BgpValidationWarning
impl Sync for BgpValidationWarning
impl Unpin for BgpValidationWarning
impl UnwindSafe for BgpValidationWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.