Skip to main content
Version: current

filter


routing/filter

Type: Directory

ArgumentTypeDescription
communityalt { super { num [ .. 0xffff] , :num [ .. 0xffff] } { num [ .. 0xffff] , :num [ .. 0xffff] } , enum (internet | graceful-shutdown | accept-own | route-filter-xlate-4 | route-filter-4 | route-filter-xlate-6 | route-filter-6 | llgr-stale | no-llgr | accept-own-nh | blackhole | no-export | no-advertise | no-export-subconfed | no-peer) { internet:r5fc1::WK_INTERNET, graceful-shutdown:r5fc1::WK_GRACEFUL_SHUTDOWN, accept-own:r5fc1::WK_ACCEPT_OWN, route-filter-xlate-4:r5fc1::WK_ROUTE_FILTER_XLATE_4, route-filter-4:r5fc1::WK_ROUTE_FILTER_4, route-filter-xlate-6:r5fc1::WK_ROUTE_FILTER_XLATE_6, route-filter-6:r5fc1::WK_ROUTE_FILTER_6, llgr-stale:r5fc1::WK_LLGR_STALE, no-llgr:r5fc1::WK_NO_LLGR, accept-own-nh:r5fc1::WK_ACCEPT_OWN_NH, blackhole:r5fc1::WK_BLACKHOLE, no-export:r5fc1::WK_NO_EXPORT, no-advertise:r5fc1::WK_NO_ADVERTISE, no-export-subconfed:r5fc1::WK_NO_EXPORT_SUBCONFED, no-peer:r5fc1::WK_NOPEER } }
communityalt { super { enum (rt | soo) { rt:r5fc2::VALUE_TYPE_RT, soo:r5fc2::VALUE_TYPE_SOO } , :address (flags=R) } { enum (rt | soo) { rt:r5fc2::VALUE_TYPE_RT, soo:r5fc2::VALUE_TYPE_SOO } , :address (flags=R) } , num }
communitysuper { num , :num , :num }

routing/filter/chain

Type: Directory

Dynamic list of filter rule chains that can be referenced in BGP/OSPF or other routing protocol configuration.

FlagNameDescription
Iinactiveinactive
Ddynamicdynamic
Read-only ArgumentTypeDescription
namestring

routing/filter/community-ext-list

Type: Directory

FlagNameDescription
Xdisableddisabled
ArgumentTypeDescription
list ( mandatory )enumReference name.
communitiesobject { }

List of extended communities expressed as a raw integer value or in the typed format: type:value, where type can be:

  • rt - route-target
  • soo - site of origin.

The value depends on the type, for more info on RT and SoO values ask Google.

regexpstringRegexp matcher to match communities. The community set with only the regexp parameter cannot be used to append/delete communities.

routing/filter/community-large-list

Type: Directory

FlagNameDescription
Xdisableddisabled
ArgumentTypeDescription
list ( mandatory )enumReference name.
communitiesobject { }List of large communities expressed in the following format: admin:value1:value2, where each section can be an integer [0..4294967295].
regexpstringRegexp matcher to match communities. The community set with only the regexp parameter cannot be used to append/delete communities.

routing/filter/community-list

Type: Directory

FlagNameDescription
Xdisableddisabled
ArgumentTypeDescription
list ( mandatory )enumReference name.
communitiesobject { }

List of communities expressed either as a well-known name or in the following format: as:number, where each section can be integer [0..65535].
Accepted well-known names:

  • accept-own
  • graceful-shutdown
  • no-advertise
  • no-llgr
  • route-filter-6
  • accept-own-nh
  • internet
  • no-export
  • no-peer
  • route-filter-xlate-4
  • blackhole
  • llgr-stale
  • local-as
  • route-filter-4
  • route-filter-xlate-6
regexpstringRegexp matcher to match communities. The community set with only the regexp parameter cannot be used to append/delete communities.

routing/filter/filter-wizard

Type: Command

ArgumentTypeDescription
chainenum
dst ( unset )super { ! , alt { enum , address (flags=46/+) } { enum , address (flags=46/+) } }
dst-len ( unset )super { ! , range [ .. 128] }
gateway ( unset )super { ! , alt { enum , address (flags=46/+) } { enum , address (flags=46/+) } }
match-chain ( unset )super { ! , enum }returns true if provided chain did not reject
routing-table ( unset )super { ! , enum }name of the routing table the route was imported from
afi ( unset )super { ! , ubit (ip, ipv6, l2vpn, vpnv4, vpnv6, l2vpn-cisco) { ip, ipv6, l2vpn, vpnv4, vpnv6, l2vpn-cisco } }address family of the route
protocol ( unset )super { ! , ubit (connected, static, rip, ospf, isis, bgp, vpn, dhcp, fantasy, modem, slaac, bgp-mpls-vpn) { connected, static, rip, ospf, isis, bgp, vpn, dhcp, fantasy, modem, slaac, bgp-mpls-vpn } }protocol type from which the route was imported
bgp-atomic-aggregatebool
bgp-local-originboolreturns true if prefix is locally originated, e.g BGP network
suppress-hw-offload (syscap=crs_prestera)bool
use-te-nexthopbool
blackholeboolmatches blackhole routes
ospf-type ( unset )super { ! , enum (intra | inter | ext1 | ext2 | nssa1 | nssa2) { intra:0, inter:1, ext1:2, ext2:3, nssa1:7, nssa2:8 } }
rpki ( unset )super { ! , enum (unknown | valid | invalid) { unknown:r5r::RPKI_UNKNOWN, valid:r5r::RPKI_VALID, invalid:r5r::RPKI_INVALID } }RPKI validation status of the prefix
bgp-origin ( unset )super { ! , ubit (igp, egp, incomplete) { igp, egp, incomplete } }matches BGP Origin attribute
bgp-as-pathstringregexp that matches BGP AS-Path attribute, see documentation for more details
bgp-communities-match ( unset )super { ! , enum () { } }
bgp-communities ( unset )object { }
bgp-communities-list-name ( unset )enum
bgp-ext-communities-match ( unset )super { ! , enum () { } }
bgp-ext-communities ( unset )object { }
bgp-ext-communities-list-name ( unset )enum
bgp-large-communities-match ( unset )super { ! , enum () { } }
bgp-large-communities ( unset )object { }
bgp-large-communities-list-name ( unset )enum
distance ( unset )super { ! , alt { enum , range [ .. 255] } { enum , range [ .. 255] } }
scope ( unset )super { ! , alt { enum , range [ .. 255] } { enum , range [ .. 255] } }
scope-target ( unset )super { ! , alt { enum , range [ .. 255] } { enum , range [ .. 255] } }
bgp-weight ( unset )super { ! , alt { enum , range [ .. 65535] } { enum , range [ .. 65535] } }
bgp-local-pref ( unset )super { ! , alt { enum , range } { enum , range } }
bgp-med ( unset )super { ! , alt { enum , range } { enum , range } }
bgp-out-med ( unset )super { ! , alt { enum , range } { enum , range } }
bgp-as-path-length ( unset )super { ! , alt { enum , range } { enum , range } }
ospf-metric ( unset )super { ! , alt { enum , range } { enum , range } }
set-distance ( unset )alt { enum () { } , num [1 .. 255] , composite { , } { , } }
set-scopealt { enum () { } , num [1 .. 255] , composite { , } { , } }
set-scope-targetalt { enum () { } , num [1 .. 255] , composite { , } { , } }
set-bgp-weightalt { enum () { } , num [ .. 65535] , composite { , } { , } }
set-bgp-local-prefalt { enum () { } , num , composite { , } { , } }set a value of the BGP Local-Pref attribute
set-bgp-medalt { enum () { } , num , composite { , } { , } }
set-bgp-out-medalt { enum () { } , num , composite { , } { , } }
set-suppress-hw-offload (syscap=crs_prestera)bool
set-use-te-nexthopbool
set-blackholebool
set-gw-checkenum (none | arp | ping | bfd)set gateway check
set-gatewayaddress (flags=46)
set-commentstring
set-bgp-communitiesobject { }set a value of the BGP Communities attribute
set-bgp-communities-list ( unset )enum
set-bgp-ext-communitiesobject { }
set-bgp-large-communitiesobject { }
action ( unset )enum ()
jump-target-chain ( unset )enum
rpki-verify ( unset )enumEnable RPKI verification in the current chain from specified RPKI group
Read-only ArgumentTypeDescription
resultstring

routing/filter/num-list

Type: Directory

FlagNameDescription
Xdisableddisabled
ArgumentTypeDescription
list ( mandatory )enum
rangerange

routing/filter/rule

Type: Directory

FlagNameDescription
Xdisableddisabled
Iinactiveinactive
ArgumentTypeDescription
chain ( mandatory )enum
ruleremote

routing/filter/select-rule

Type: Directory

FlagNameDescription
Xdisableddisabled
Iinvalidinvalid
ArgumentTypeDescription
chain ( unset mandatory )enum
do-where ( unset )enum
do-group-num ( unset )super { enum () { } , >enum }
do-group-prfx ( unset )super { enum () { } , >enum }
do-select-num ( unset )super { enum () { } , >enum (largest-none-best | largest-none-worst | smallest-none-best | smallest-none-worst) { largest-none-best:r5srl::SELECT_CMP_LB, largest-none-worst:r5srl::SELECT_CMP_LW, smallest-none-best:r5srl::SELECT_CMP_SB, smallest-none-worst:r5srl::SELECT_CMP_SW } }
do-select-prfx ( unset )super { enum () { } , >enum (largest-none-best | largest-none-worst | smallest-none-best | smallest-none-worst) { largest-none-best:r5srl::SELECT_CMP_LB, largest-none-worst:r5srl::SELECT_CMP_LW, smallest-none-best:r5srl::SELECT_CMP_SB, smallest-none-worst:r5srl::SELECT_CMP_SW } }
do-takenum
do-jumpenum

routing/filter/sync

Type: Command

routing/filter/test-as-path-regexp

Type: Command

ArgumentTypeDescription
regexpstring
as-pathobject { num }
Read-only ArgumentTypeDescription
resultstring