Skip to main content

PolicyConditions

Struct PolicyConditions 

Source
#[non_exhaustive]
pub struct PolicyConditions {
Show 46 fields pub protocols: Vec<String>, pub families: Vec<String>, pub communities: Vec<String>, pub as_paths: Vec<String>, pub prefix_lists: Vec<String>, pub prefix_list_filters: Vec<String>, pub route_filters: Vec<RouteFilter>, pub neighbors: Vec<String>, pub policies: Vec<String>, pub aggregate_contributor: bool, pub areas: Vec<String>, pub as_path_groups: Vec<String>, pub as_path_neighbors: Vec<String>, pub as_path_origins: Vec<String>, pub as_path_transits: Vec<String>, pub as_path_unique_count: Option<String>, pub as_path_calc_length: Option<String>, pub color: Option<String>, pub community_count: Option<String>, pub conditions: Vec<String>, pub external: bool, pub external_type: Option<String>, pub internal: bool, pub interfaces: Vec<String>, pub level: Option<String>, pub local_preference: Option<String>, pub metric: Option<String>, pub mac_filter_lists: Vec<String>, pub multicast_scoping: Option<String>, pub next_hops: Vec<String>, pub next_hop_type: Option<String>, pub nlri_route_types: Vec<String>, pub origin: Option<String>, pub preference: Option<String>, pub programmed: bool, pub ribs: Vec<String>, pub route_filter_lists: Vec<String>, pub route_type: Option<String>, pub rtf_prefix_lists: Vec<String>, pub source_address_filter_lists: Vec<String>, pub source_address_filters: Vec<RouteFilter>, pub state: Option<String>, pub tag: Option<String>, pub traffic_engineering: bool, pub validation_database: Option<String>, pub validation_database_instance: Option<ValidationDatabaseInstance>,
}
Expand description

The match conditions of a term’s from or to statement. Conditions not listed here are ignored.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§protocols: Vec<String>§families: Vec<String>§communities: Vec<String>§as_paths: Vec<String>§prefix_lists: Vec<String>§prefix_list_filters: Vec<String>

The raw prefix-list-filter argument, e.g. "CUSTOMERS orlonger".

§route_filters: Vec<RouteFilter>§neighbors: Vec<String>§policies: Vec<String>

Subroutine policies from policy.

§aggregate_contributor: bool

aggregate-contributor: routes that contribute to a configured aggregate.

§areas: Vec<String>

The OSPF area identifiers.

§as_path_groups: Vec<String>

The as-path-group names.

§as_path_neighbors: Vec<String>

The raw as-path-neighbors, as-path-origins and as-path-transits arguments, which name an AS list or an AS list group, e.g. "as-list PEERS" or "as-list-group GROUP".

§as_path_origins: Vec<String>§as_path_transits: Vec<String>§as_path_unique_count: Option<String>

Everything after as-path-unique-count, e.g. "2 orhigher".

§as_path_calc_length: Option<String>

Everything after as-path-calc-length, e.g. "4 equal".

§color: Option<String>

Everything after color, e.g. "10" or "10 color2 5".

§community_count: Option<String>

Everything after community-count, e.g. "5 orlower".

§conditions: Vec<String>

The condition names defined under policy-options.

§external: bool

external: IGP external routes. The type argument is in external_type.

§external_type: Option<String>

The OSPF metric type after external type, "1" or "2".

§internal: bool

internal: IGP internal routes.

§interfaces: Vec<String>§level: Option<String>

The IS-IS level.

§local_preference: Option<String>§metric: Option<String>

Everything after metric, e.g. "10" or "10 metric2 20".

§mac_filter_lists: Vec<String>§multicast_scoping: Option<String>

Everything after multicast-scoping, e.g. "link-local" or "4 orhigher".

§next_hops: Vec<String>§next_hop_type: Option<String>

The next-hop-type, e.g. "merged".

§nlri_route_types: Vec<String>

The NLRI route types, "1" through "10".

§origin: Option<String>§preference: Option<String>

Everything after preference, e.g. "10" or "10 preference2 20".

§programmed: bool

programmed.

§ribs: Vec<String>

The routing tables named by rib, e.g. "vrf-a.inet.0".

§route_filter_lists: Vec<String>§route_type: Option<String>

The route-type, "external" or "internal".

§rtf_prefix_lists: Vec<String>

The raw rtf-prefix-list argument, e.g. "LIST route-targets".

§source_address_filter_lists: Vec<String>§source_address_filters: Vec<RouteFilter>

The source-address-filter entries, which have the same form as route-filter.

§state: Option<String>

The route state, "active" or "inactive".

§tag: Option<String>

Everything after tag, e.g. "100" or "100 tag2 200".

§traffic_engineering: bool

traffic-engineering.

§validation_database: Option<String>

The validation-database match: "valid", "invalid" or "unknown", the origin validation state of the route.

§validation_database_instance: Option<ValidationDatabaseInstance>

The validation-database-instance block of Junos OS Evolved.

Trait Implementations§

Source§

impl Clone for PolicyConditions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PolicyConditions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PolicyConditions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for PolicyConditions

Source§

impl PartialEq for PolicyConditions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PolicyConditions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.