Skip to main content

BgpPeerOptions

Struct BgpPeerOptions 

Source
#[non_exhaustive]
pub struct BgpPeerOptions {
Show 34 fields pub local_as_options: Option<LocalAs>, pub multihop: Option<Multihop>, pub remove_private: Option<RemovePrivate>, pub bfd_liveness_detection: Option<BgpBfd>, pub graceful_restart: Option<BgpGracefulRestart>, pub multipath: Option<BgpMultipath>, pub address_families: Vec<BgpFamily>, pub authentication_algorithm: Option<String>, pub has_authentication_key: bool, pub authentication_key_chain: Option<String>, pub hold_time: Option<String>, pub out_delay: Option<String>, pub tcp_mss: Option<String>, pub keep: Option<String>, pub local_preference: Option<String>, pub preference: Option<String>, pub bgp_identifier: Option<String>, pub ipsec_sa: Option<String>, pub local_interface: Option<String>, pub metric_out: Option<String>, pub advertise_peer_as: Option<bool>, pub advertise_external: bool, pub advertise_external_conditional: bool, pub passive: bool, pub mtu_discovery: bool, pub advertise_inactive: bool, pub as_override: bool, pub damping: bool, pub no_aggregator_id: bool, pub no_client_reflect: bool, pub log_updown: bool, pub include_mp_next_hop: bool, pub accept_remote_nexthop: bool, pub vpn_apply_export: bool,
}
Expand description

The session settings shared by the bgp, group and neighbor levels. Settings inherited from an outer level are not resolved. The authentication-key is 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.
§local_as_options: Option<LocalAs>§multihop: Option<Multihop>§remove_private: Option<RemovePrivate>§bfd_liveness_detection: Option<BgpBfd>§graceful_restart: Option<BgpGracefulRestart>§multipath: Option<BgpMultipath>§address_families: Vec<BgpFamily>

The family statements of this level, which replace (not extend) those of an outer level.

§authentication_algorithm: Option<String>

aes-128-cmac-96, hmac-sha-1-96 or md5.

§has_authentication_key: bool

An authentication-key is configured.

§authentication_key_chain: Option<String>§hold_time: Option<String>

Seconds.

§out_delay: Option<String>

Seconds.

§tcp_mss: Option<String>§keep: Option<String>

all or none.

§local_preference: Option<String>§preference: Option<String>§bgp_identifier: Option<String>§ipsec_sa: Option<String>§local_interface: Option<String>

The interface of an IPv6 link-local neighbor address.

§metric_out: Option<String>

The metric-out words as written, e.g. "100", "minimum-igp 10" or "igp delay-med-update".

§advertise_peer_as: Option<bool>

Some(true) for advertise-peer-as, Some(false) for no-advertise-peer-as.

§advertise_external: bool§advertise_external_conditional: bool

advertise-external conditional.

§passive: bool§mtu_discovery: bool§advertise_inactive: bool§as_override: bool§damping: bool§no_aggregator_id: bool§no_client_reflect: bool§log_updown: bool§include_mp_next_hop: bool§accept_remote_nexthop: bool§vpn_apply_export: bool

Trait Implementations§

Source§

impl Clone for BgpPeerOptions

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 BgpPeerOptions

Source§

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

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

impl Eq for BgpPeerOptions

Source§

impl PartialEq for BgpPeerOptions

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 BgpPeerOptions

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.