#[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
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: boolaggregate-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: boolexternal: 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: boolinternal: 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: boolprogrammed.
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: booltraffic-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.