#[non_exhaustive]pub struct Bgp {
pub groups: Vec<BgpGroup>,
pub options: BgpPeerOptions,
pub disable: bool,
pub precision_timers: bool,
pub path_selection: Option<PathSelection>,
pub output_queue_priority: Option<OutputQueuePriority>,
pub multipath_build_priority: Option<String>,
pub srv6: Option<BgpSrv6>,
}Expand description
The protocols bgp configuration.
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.groups: Vec<BgpGroup>§options: BgpPeerOptionsPeer options written directly under bgp, which every group inherits unless it overrides them.
disable: boolBGP is disabled on the system.
precision_timers: bool§path_selection: Option<PathSelection>§output_queue_priority: Option<OutputQueuePriority>§multipath_build_priority: Option<String>low or medium, from multipath-build-priority.
srv6: Option<BgpSrv6>source-packet-routing srv6.
Trait Implementations§
impl Eq for Bgp
impl StructuralPartialEq for Bgp
Auto Trait Implementations§
impl Forget for Bgp
impl Freeze for Bgpwhere
*const u8 is !null: Freeze,
PhantomData<BgpGroup>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<BgpFamily>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<BgpSrv6Locator>: Freeze,
impl Move for Bgp
impl RefUnwindSafe for Bgp
impl Send for Bgpwhere
RawVecInner: Send,
impl Sync for Bgpwhere
RawVecInner: Sync,
impl Unpin for Bgp
impl UnsafeUnpin for Bgpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BgpGroup>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<BgpFamily>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<BgpSrv6Locator>: UnsafeUnpin,
impl UnwindSafe for Bgpwhere
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