Enum snowcap::netsim::route_map::RouteMapMatch[][src]

pub enum RouteMapMatch {
    Neighbor(RouterId),
    Prefix(RouteMapMatchClause<Prefix>),
    AsPath(RouteMapMatchAsPath),
    NextHop(RouterId),
    Community(Option<RouteMapMatchClause<u32>>),
}

Match statement of the route map. Can be combined to generate complex match statements

Variants

Neighbor(RouterId)

Matches on the neighbor (exact value only)

Prefix(RouteMapMatchClause<Prefix>)

Matches on the Prefix (exact value or a range)

AsPath(RouteMapMatchAsPath)

Matches on the As Path (either if it contains an as, or on the length of the path)

NextHop(RouterId)

Matches on the Next Hop (exact value)

Community(Option<RouteMapMatchClause<u32>>)

Matches on the community (either not set, or set and matches a value or a range)

Implementations

impl RouteMapMatch[src]

pub fn matches(&self, entry: &BgpRibEntry) -> bool[src]

Returns true if the BgpRibEntry matches the expression

Trait Implementations

impl Clone for RouteMapMatch[src]

impl Debug for RouteMapMatch[src]

impl PartialEq<RouteMapMatch> for RouteMapMatch[src]

impl StructuralPartialEq for RouteMapMatch[src]

Auto Trait Implementations

impl RefUnwindSafe for RouteMapMatch[src]

impl Send for RouteMapMatch[src]

impl Sync for RouteMapMatch[src]

impl Unpin for RouteMapMatch[src]

impl UnwindSafe for RouteMapMatch[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]