Struct bgpd_rs::config::PeerConfig [−][src]
pub struct PeerConfig {
pub remote_ip: IpNetwork,
pub remote_as: u32,
pub local_as: u32,
pub local_router_id: IpAddr,
pub enabled: bool,
pub passive: bool,
pub hold_timer: u16,
pub dest_port: u16,
pub families: Vec<Family>,
pub advertise_sources: HashSet<AdvertiseSource>,
pub static_routes: Vec<RouteSpec>,
pub static_flows: Vec<FlowSpec>,
}
Expand description
Peer (or peers) config and static advertisements
peers
can specify a single peer IP address or a subnet+mask
Fields
remote_ip: IpNetwork
remote_as: u32
local_as: u32
local_router_id: IpAddr
enabled: bool
passive: bool
hold_timer: u16
dest_port: u16
families: Vec<Family>
advertise_sources: HashSet<AdvertiseSource>
static_routes: Vec<RouteSpec>
static_flows: Vec<FlowSpec>
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PeerConfig
impl Send for PeerConfig
impl Sync for PeerConfig
impl Unpin for PeerConfig
impl UnwindSafe for PeerConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more