#[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: boolOSPF 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§
impl Eq for Ospf
impl StructuralPartialEq for Ospf
Auto Trait Implementations§
impl Forget for Ospf
impl Freeze for Ospfwhere
*const u8 is !null: Freeze,
PhantomData<OspfArea>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<OspfTopology>: Freeze,
impl Move for Ospf
impl RefUnwindSafe for Ospf
impl Send for Ospfwhere
RawVecInner: Send,
impl Sync for Ospfwhere
RawVecInner: Sync,
impl Unpin for Ospf
impl UnsafeUnpin for Ospfwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<OspfArea>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<OspfTopology>: UnsafeUnpin,
impl UnwindSafe for Ospfwhere
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