Skip to main content

Ospf

Struct Ospf 

Source
#[non_exhaustive]
pub struct Ospf {
Show 24 fields pub areas: Vec<OspfArea>, pub disable: bool, pub reference_bandwidth: Option<String>, pub preference: Option<String>, pub external_preference: Option<String>, pub export_policies: Vec<String>, pub import_policies: Vec<String>, pub rib_group: Option<String>, pub no_rfc_1583: bool, pub no_nssa_abr: bool, pub overload: Option<OspfOverload>, pub spf_options: Option<OspfSpfOptions>, pub graceful_restart: Option<OspfGracefulRestart>, pub traffic_engineering: Option<OspfTrafficEngineering>, pub database_protection: Option<OspfDatabaseProtection>, pub backup_spf_options: Option<OspfBackupSpfOptions>, pub source_packet_routing: Option<OspfSourcePacketRouting>, pub topologies: Vec<OspfTopology>, pub prefix_export_limit: Option<String>, pub lsa_refresh_interval: Option<String>, pub domain_id: Option<String>, pub domain_vpn_tag: Option<String>, pub route_type_community: Option<String>, pub flex_algorithm_preference: Option<String>,
}
Expand description

The protocols ospf configuration. ospf3 is not covered.

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.
§areas: Vec<OspfArea>§disable: bool

OSPF is disabled.

§reference_bandwidth: Option<String>

Bits per second as written, e.g. 100g.

§preference: Option<String>

Default 10.

§external_preference: Option<String>

For external routes; default 150.

§export_policies: Vec<String>§import_policies: Vec<String>§rib_group: Option<String>§no_rfc_1583: bool§no_nssa_abr: bool§overload: Option<OspfOverload>§spf_options: Option<OspfSpfOptions>§graceful_restart: Option<OspfGracefulRestart>§traffic_engineering: Option<OspfTrafficEngineering>§database_protection: Option<OspfDatabaseProtection>§backup_spf_options: Option<OspfBackupSpfOptions>§source_packet_routing: Option<OspfSourcePacketRouting>§topologies: Vec<OspfTopology>§prefix_export_limit: Option<String>§lsa_refresh_interval: Option<String>

Minutes.

§domain_id: Option<String>§domain_vpn_tag: Option<String>§route_type_community: Option<String>

iana or vendor.

§flex_algorithm_preference: Option<String>

The preference of OSPF flexible algorithm routes (25.4 and later). Its syntax is not documented; the single argument is kept as written.

Trait Implementations§

Source§

impl Clone for Ospf

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 Ospf

Source§

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

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

impl Eq for Ospf

Source§

impl PartialEq for Ospf

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 Ospf

Auto Trait Implementations§

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.