pub struct BgpNeighbor {Show 17 fields
pub address: BgpNeighborAddr,
pub remote_as: u32,
pub description: Option<String>,
pub update_source: Option<String>,
pub next_hop_self: bool,
pub password: Option<String>,
pub shutdown: bool,
pub peer_group: Option<String>,
pub route_map_in: Option<String>,
pub route_map_out: Option<String>,
pub prefix_list_in: Option<String>,
pub prefix_list_out: Option<String>,
pub soft_reconfiguration: bool,
pub send_community: bool,
pub remove_private_as: bool,
pub default_originate: bool,
pub activate: bool,
}Expand description
A BGP neighbor entry (neighbor <addr|peer-group> …).
Fields§
§address: BgpNeighborAddr§remote_as: u32§description: Option<String>§update_source: Option<String>update-source <interface>
next_hop_self: boolnext-hop-self
password: Option<String>§shutdown: bool§peer_group: Option<String>Peer-group this neighbor inherits from.
route_map_in: Option<String>§route_map_out: Option<String>§prefix_list_in: Option<String>§prefix_list_out: Option<String>§soft_reconfiguration: bool§send_community: bool§remove_private_as: bool§default_originate: bool§activate: boolTrait Implementations§
Source§impl Clone for BgpNeighbor
impl Clone for BgpNeighbor
Source§fn clone(&self) -> BgpNeighbor
fn clone(&self) -> BgpNeighbor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BgpNeighbor
impl Debug for BgpNeighbor
Source§impl<'de> Deserialize<'de> for BgpNeighbor
impl<'de> Deserialize<'de> for BgpNeighbor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpNeighbor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpNeighbor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BgpNeighbor
impl Serialize for BgpNeighbor
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 BgpNeighbor
impl RefUnwindSafe for BgpNeighbor
impl Send for BgpNeighbor
impl Sync for BgpNeighbor
impl Unpin for BgpNeighbor
impl UnsafeUnpin for BgpNeighbor
impl UnwindSafe for BgpNeighbor
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