Skip to main content

OspfInterface

Struct OspfInterface 

Source
#[non_exhaustive]
pub struct OspfInterface {
Show 33 fields pub name: String, pub passive: bool, pub metric: Option<u32>, pub disable: bool, pub priority: Option<String>, pub hello_interval: Option<String>, pub dead_interval: Option<String>, pub retransmit_interval: Option<String>, pub transit_delay: Option<String>, pub poll_interval: Option<String>, pub te_metric: Option<String>, pub mtu: Option<String>, pub interface_type: Option<String>, pub ipsec_sa: Option<String>, pub authentication: Option<OspfAuthentication>, pub bfd_liveness_detection: Option<OspfBfd>, pub ldp_synchronization_disable: bool, pub ldp_synchronization_hold_time: Option<String>, pub neighbors: Vec<OspfNeighbor>, pub topologies: Vec<OspfInterfaceTopology>, pub link_protection: bool, pub node_link_protection: bool, pub no_eligible_backup: bool, pub no_eligible_remote_backup: bool, pub secondary: bool, pub flood_reduction: bool, pub demand_circuit: bool, pub no_interface_state_traps: bool, pub no_neighbor_down_notification: bool, pub no_advertise_adjacency_segment: bool, pub dynamic_neighbors: bool, pub strict_bfd: bool, pub post_convergence_lfa: Option<OspfPostConvergenceLfa>,
}
Expand description

An interface <name> entry under an OSPF area. Values are kept as written. The passive traffic-engineering settings, bandwidth-based-metrics, lan-neighbor and ipv4-adjacency-segment 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.
§name: String§passive: bool§metric: Option<u32>§disable: bool

OSPF is disabled on this interface.

§priority: Option<String>§hello_interval: Option<String>

Seconds.

§dead_interval: Option<String>

Seconds.

§retransmit_interval: Option<String>

Seconds.

§transit_delay: Option<String>

Seconds.

§poll_interval: Option<String>

Seconds, for NBMA interfaces.

§te_metric: Option<String>§mtu: Option<String>§interface_type: Option<String>

nbma, p2mp, p2mp-over-lan or p2p.

§ipsec_sa: Option<String>§authentication: Option<OspfAuthentication>§bfd_liveness_detection: Option<OspfBfd>§ldp_synchronization_disable: bool

ldp-synchronization { disable; }.

§ldp_synchronization_hold_time: Option<String>

Seconds, from ldp-synchronization { hold-time ...; }.

§neighbors: Vec<OspfNeighbor>§topologies: Vec<OspfInterfaceTopology>§link_protection: bool§node_link_protection: bool§no_eligible_backup: bool§no_eligible_remote_backup: bool§secondary: bool§flood_reduction: bool§demand_circuit: bool§no_interface_state_traps: bool§no_neighbor_down_notification: bool§no_advertise_adjacency_segment: bool§dynamic_neighbors: bool§strict_bfd: bool§post_convergence_lfa: Option<OspfPostConvergenceLfa>

Trait Implementations§

Source§

impl Clone for OspfInterface

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 OspfInterface

Source§

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

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

impl Eq for OspfInterface

Source§

impl PartialEq for OspfInterface

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 OspfInterface

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.