Skip to main content

Ldp

Struct Ldp 

Source
#[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: bool

log-updown { trap disable; }.

§traceoptions: Option<Traceoptions>

Trait Implementations§

Source§

impl Clone for Ldp

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 Ldp

Source§

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

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

impl Default for Ldp

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Ldp

Source§

impl PartialEq for Ldp

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 Ldp

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.