#[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: boolAn 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: booladvertise-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: boolTrait Implementations§
Source§impl Clone for BgpPeerOptions
impl Clone for BgpPeerOptions
Source§impl Debug for BgpPeerOptions
impl Debug for BgpPeerOptions
impl Eq for BgpPeerOptions
Source§impl PartialEq for BgpPeerOptions
impl PartialEq for BgpPeerOptions
impl StructuralPartialEq for BgpPeerOptions
Auto Trait Implementations§
impl Forget for BgpPeerOptions
impl Freeze for BgpPeerOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<BgpFamily>: Freeze,
impl Move for BgpPeerOptions
impl RefUnwindSafe for BgpPeerOptions
impl Send for BgpPeerOptionswhere
RawVecInner: Send,
impl Sync for BgpPeerOptionswhere
RawVecInner: Sync,
impl Unpin for BgpPeerOptions
impl UnsafeUnpin for BgpPeerOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<BgpFamily>: UnsafeUnpin,
impl UnwindSafe for BgpPeerOptionswhere
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