#[non_exhaustive]pub struct Ldp {Show 35 fields
pub disable: bool,
pub interfaces: Vec<LdpInterface>,
pub sessions: Vec<LdpSession>,
pub session_groups: Vec<LdpSession>,
pub keepalive_interval: Option<String>,
pub keepalive_timeout: Option<String>,
pub preference: Option<String>,
pub families: Vec<String>,
pub dual_transport: Option<LdpDualTransport>,
pub transport_address: Option<String>,
pub transport_preference: Option<String>,
pub deaggregate: Option<bool>,
pub mtu_discovery: Option<bool>,
pub explicit_null: bool,
pub no_forwarding: bool,
pub track_igp_metric: bool,
pub l2_smart_policy: bool,
pub strict_targeted_hellos: bool,
pub upstream_label_assignment: bool,
pub p2mp: bool,
pub p2mp_no_rsvp_tunneling: bool,
pub longest_match: Option<Vec<String>>,
pub export_policies: Vec<String>,
pub import_policies: Vec<String>,
pub egress_policies: Vec<String>,
pub dod_request_policy: Option<String>,
pub igp_synchronization_holddown_interval: Option<String>,
pub graceful_restart: Option<LdpGracefulRestart>,
pub session_protection: Option<Option<String>>,
pub targeted_hello: Option<LdpTargetedHello>,
pub auto_targeted_session: Option<LdpAutoTargetedSession>,
pub make_before_break: Option<LdpMakeBeforeBreak>,
pub label_withdrawal_delay: Option<String>,
pub log_updown_trap_disabled: bool,
pub traceoptions: Option<Traceoptions>,
}Expand description
The protocols ldp configuration. The oam, policing, traffic-statistics, sr-mapping-client, neighbor,
rib-group, entropy-label and 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.disable: bool§interfaces: Vec<LdpInterface>§sessions: Vec<LdpSession>§session_groups: Vec<LdpSession>§keepalive_interval: Option<String>Seconds.
keepalive_timeout: Option<String>Seconds.
preference: Option<String>§families: Vec<String>The words of family { ... }, e.g. inet and inet6.
dual_transport: Option<LdpDualTransport>§transport_address: Option<String>An address, interface or router-id.
transport_preference: Option<String>ipv4 or ipv6.
deaggregate: Option<bool>Some(true) for deaggregate, Some(false) for no-deaggregate.
mtu_discovery: Option<bool>Some(true) for mtu-discovery, Some(false) for no-mtu-discovery.
explicit_null: bool§no_forwarding: bool§track_igp_metric: bool§l2_smart_policy: bool§strict_targeted_hellos: bool§upstream_label_assignment: bool§p2mp: bool§p2mp_no_rsvp_tunneling: bool§longest_match: Option<Vec<String>>The policies of longest-match { policy ...; }; empty for a bare longest-match;.
export_policies: Vec<String>§import_policies: Vec<String>§egress_policies: Vec<String>§dod_request_policy: Option<String>§igp_synchronization_holddown_interval: Option<String>Seconds.
graceful_restart: Option<LdpGracefulRestart>§session_protection: Option<Option<String>>Some(timeout in seconds) inside, so a bare session-protection; is Some(None).
targeted_hello: Option<LdpTargetedHello>§auto_targeted_session: Option<LdpAutoTargetedSession>§make_before_break: Option<LdpMakeBeforeBreak>§label_withdrawal_delay: Option<String>§log_updown_trap_disabled: boollog-updown { trap disable; }.
traceoptions: Option<Traceoptions>Trait Implementations§
impl Eq for Ldp
impl StructuralPartialEq for Ldp
Auto Trait Implementations§
impl Forget for Ldp
impl Freeze for Ldpwhere
*const u8 is !null: Freeze,
PhantomData<LdpInterface>: Freeze,
PhantomData<LdpSession>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<TraceFlag>: Freeze,
impl Move for Ldp
impl RefUnwindSafe for Ldp
impl Send for Ldpwhere
RawVecInner: Send,
impl Sync for Ldpwhere
RawVecInner: Sync,
impl Unpin for Ldp
impl UnsafeUnpin for Ldpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<LdpInterface>: UnsafeUnpin,
PhantomData<LdpSession>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<TraceFlag>: UnsafeUnpin,
impl UnwindSafe for Ldpwhere
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