Skip to main content

BgpFamily

Struct BgpFamily 

Source
#[non_exhaustive]
pub struct BgpFamily {
Show 28 fields pub afi: String, pub safi: Option<String>, pub prefix_limit: Option<PrefixLimit>, pub accepted_prefix_limit: Option<PrefixLimit>, pub add_path: Option<AddPath>, pub loops: Option<String>, pub aigp: Option<bool>, pub rib_group: Option<String>, pub no_validate: Option<String>, pub defer_initial_multipath_build_max_delay: Option<String>, pub damping: bool, pub resolve_vpn: bool, pub no_install: bool, pub protection: bool, pub strip_nexthop: bool, pub auto_discovery_only: bool, pub per_group_label: bool, pub explicit_null: bool, pub extended_nexthop: bool, pub advertise_srv6_service: bool, pub accept_srv6_service: bool, pub extended_nexthop_color: bool, pub extended_nexthop_tunnel: bool, pub output_queue_priority: Option<String>, pub route_refresh_priority: Option<String>, pub withdraw_priority: Option<String>, pub entropy_label: Option<EntropyLabel>, pub graceful_restart: Option<FamilyGracefulRestart>,
}
Expand description

An address family of a peer, e.g. family inet { unicast { ... } }. Families are not inherited between the bgp, group and neighbor levels, so none is resolved here. Only the more common per-family statements are 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.
§afi: String

inet, inet6, inet-vpn, l2vpn, evpn, route-target, …

§safi: Option<String>

unicast, labeled-unicast, signaling, …; None for a family written without one.

§prefix_limit: Option<PrefixLimit>§accepted_prefix_limit: Option<PrefixLimit>§add_path: Option<AddPath>§loops: Option<String>§aigp: Option<bool>

Some(true) for aigp, Some(false) for aigp { disable; }.

§rib_group: Option<String>§no_validate: Option<String>

The policy of no-validate.

§defer_initial_multipath_build_max_delay: Option<String>

Seconds, from defer-initial-multipath-build { maximum-delay ...; }.

§damping: bool§resolve_vpn: bool§no_install: bool§protection: bool§strip_nexthop: bool§auto_discovery_only: bool§per_group_label: bool§explicit_null: bool§extended_nexthop: bool§advertise_srv6_service: bool

Sends the SRv6 service SID with the routes of this family.

§accept_srv6_service: bool

Accepts the SRv6 service SID of received routes.

§extended_nexthop_color: bool

Resolves colored prefixes over inetcolor.0 or inet6color.0 for segment routing traffic engineering.

§extended_nexthop_tunnel: bool§output_queue_priority: Option<String>

expedited or priority <n>, as written.

§route_refresh_priority: Option<String>§withdraw_priority: Option<String>§entropy_label: Option<EntropyLabel>§graceful_restart: Option<FamilyGracefulRestart>

Trait Implementations§

Source§

impl Clone for BgpFamily

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BgpFamily

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BgpFamily

Source§

impl PartialEq for BgpFamily

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BgpFamily

Auto Trait Implementations§

§

impl Forget for BgpFamily

§

impl Freeze for BgpFamily

§

impl Move for BgpFamily

§

impl RefUnwindSafe for BgpFamily

§

impl Send for BgpFamily
where RawVecInner: Send,

§

impl Sync for BgpFamily
where RawVecInner: Sync,

§

impl Unpin for BgpFamily
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for BgpFamily

§

impl UnwindSafe for BgpFamily
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.