Struct bgpd_rs::rib::RIB [−][src]
pub struct RIB { /* fields omitted */ }
Expand description
Routing-information Base Contains all received NLRI information with associated Path Attributes and provides an API to query:
- routes learned (from a peer, config, or API)
- routes that should be advertised to a peer
Implementations
pub fn insert_from_api(
&mut self,
family: Family,
attributes: Vec<PathAttribute>,
nlri: NLRIEncoding
) -> Arc<ExportEntry>
pub fn insert_from_config(
&mut self,
family: Family,
attributes: Vec<PathAttribute>,
nlri: NLRIEncoding
)
Remove all learned NLRI from a given peer
Remove matching learned NLRI from a given peer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RIB
impl UnwindSafe for RIB
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