#[non_exhaustive]pub struct BgpGroup {Show 15 fields
pub name: String,
pub group_type: Option<String>,
pub description: Option<String>,
pub peer_as: Option<String>,
pub local_as: Option<String>,
pub local_address: Option<String>,
pub cluster: Option<String>,
pub families: Vec<String>,
pub import_policies: Vec<String>,
pub export_policies: Vec<String>,
pub neighbors: Vec<BgpNeighbor>,
pub allow: Vec<String>,
pub peer_as_list: Option<String>,
pub dynamic_neighbors: Vec<DynamicNeighbor>,
pub options: BgpPeerOptions,
}Expand description
A group <name>.
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.name: String§group_type: Option<String>internal or external.
description: Option<String>§peer_as: Option<String>§local_as: Option<String>§local_address: Option<String>§cluster: Option<String>Route-reflector cluster id.
families: Vec<String>Address families, e.g. "inet", "inet-vpn".
import_policies: Vec<String>§export_policies: Vec<String>§neighbors: Vec<BgpNeighbor>§allow: Vec<String>Prefixes from which the group accepts sessions, written allow [ ... ];.
peer_as_list: Option<String>The name of the policy-options as-list that a dynamic peer’s AS must match.
dynamic_neighbors: Vec<DynamicNeighbor>§options: BgpPeerOptionsTrait Implementations§
impl Eq for BgpGroup
impl StructuralPartialEq for BgpGroup
Auto Trait Implementations§
impl Forget for BgpGroup
impl Freeze for BgpGroupwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<BgpNeighbor>: Freeze,
PhantomData<DynamicNeighbor>: Freeze,
PhantomData<BgpFamily>: Freeze,
impl Move for BgpGroup
impl RefUnwindSafe for BgpGroup
impl Send for BgpGroupwhere
RawVecInner: Send,
impl Sync for BgpGroupwhere
RawVecInner: Sync,
impl Unpin for BgpGroup
impl UnsafeUnpin for BgpGroupwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<BgpNeighbor>: UnsafeUnpin,
PhantomData<DynamicNeighbor>: UnsafeUnpin,
PhantomData<BgpFamily>: UnsafeUnpin,
impl UnwindSafe for BgpGroupwhere
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