#[non_exhaustive]pub struct RouteAttributes {Show 18 fields
pub active: Option<bool>,
pub install: Option<bool>,
pub readvertise: Option<bool>,
pub resolve: Option<bool>,
pub retain: Option<bool>,
pub longest_match: Option<bool>,
pub preference: Option<String>,
pub preference2: Option<String>,
pub metric: Option<String>,
pub metric2: Option<String>,
pub tag: Option<String>,
pub tag2: Option<String>,
pub color: Option<String>,
pub color2: Option<String>,
pub community: Vec<String>,
pub description: Option<String>,
pub priority: Option<String>,
pub backup_pe_group: Option<String>,
}Expand description
The attributes a route can carry, from the route itself or from the defaults of its block. as-path,
bfd-liveness-detection and the LSP next-hop statements are not extracted.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.active: Option<bool>Some(true) for active, Some(false) for passive.
install: Option<bool>Some(true) for install, Some(false) for no-install.
readvertise: Option<bool>§resolve: Option<bool>§retain: Option<bool>§longest_match: Option<bool>§preference: Option<String>The value as written, with any type option, e.g. "5" or "5 type 2".
preference2: Option<String>§metric: Option<String>§metric2: Option<String>§tag: Option<String>§tag2: Option<String>§color: Option<String>§color2: Option<String>§community: Vec<String>Community IDs and well-known names.
description: Option<String>§priority: Option<String>high, medium or low.
backup_pe_group: Option<String>Trait Implementations§
Source§impl Clone for RouteAttributes
impl Clone for RouteAttributes
Source§impl Debug for RouteAttributes
impl Debug for RouteAttributes
Source§impl Default for RouteAttributes
impl Default for RouteAttributes
impl Eq for RouteAttributes
Source§impl PartialEq for RouteAttributes
impl PartialEq for RouteAttributes
impl StructuralPartialEq for RouteAttributes
Auto Trait Implementations§
impl Forget for RouteAttributes
impl Freeze for RouteAttributes
impl Move for RouteAttributes
impl RefUnwindSafe for RouteAttributes
impl Send for RouteAttributeswhere
RawVecInner: Send,
impl Sync for RouteAttributeswhere
RawVecInner: Sync,
impl Unpin for RouteAttributes
impl UnsafeUnpin for RouteAttributeswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RouteAttributeswhere
RawVecInner: UnwindSafe,
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