pub struct BgpConfig {
pub asn: u32,
pub router_id: Option<IpAddr>,
pub neighbors: Vec<BgpNeighbor>,
pub peer_groups: Vec<BgpPeerGroup>,
pub networks: Vec<IpNet>,
pub address_families: Vec<BgpAddressFamily>,
pub redistribute: Vec<OspfRedistribute>,
pub log_neighbor_changes: bool,
pub bestpath: Option<String>,
}Expand description
A router bgp <asn> block.
Fields§
§asn: u32§router_id: Option<IpAddr>§neighbors: Vec<BgpNeighbor>All neighbor entries defined at the global BGP level.
peer_groups: Vec<BgpPeerGroup>§networks: Vec<IpNet>network statements in the global context (outside any address-family).
address_families: Vec<BgpAddressFamily>address-family blocks.
redistribute: Vec<OspfRedistribute>§log_neighbor_changes: boolbgp log-neighbor-changes
bestpath: Option<String>bgp bestpath … policy string, if present.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BgpConfig
impl<'de> Deserialize<'de> for BgpConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BgpConfig
impl Serialize for BgpConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BgpConfig
impl RefUnwindSafe for BgpConfig
impl Send for BgpConfig
impl Sync for BgpConfig
impl Unpin for BgpConfig
impl UnsafeUnpin for BgpConfig
impl UnwindSafe for BgpConfig
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