filter
routing/filter
Type: Directory
| Argument | Type | Description |
|---|---|---|
| community | alt { 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 } } | |
| community | alt { 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 } | |
| community | super { 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.
| Flag | Name | Description |
|---|---|---|
| I | inactive | inactive |
| D | dynamic | dynamic |
| Read-only Argument | Type | Description |
|---|---|---|
| name | string |
routing/filter/community-ext-list
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| Argument | Type | Description |
|---|---|---|
| list ( mandatory ) | enum | Reference name. |
| communities | object { } | List of extended communities expressed as a raw integer value or in the typed format:
The value depends on the type, for more info on RT and SoO values ask Google. |
| regexp | string | Regexp 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
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| Argument | Type | Description |
|---|---|---|
| list ( mandatory ) | enum | Reference name. |
| communities | object { } | List of large communities expressed in the following format: admin:value1:value2, where each section can be an integer [0..4294967295]. |
| regexp | string | Regexp 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
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| Argument | Type | Description |
|---|---|---|
| list ( mandatory ) | enum | Reference name. |
| communities | object { } | List of communities expressed either as a well-known name or in the following format:
|
| regexp | string | Regexp 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
| Argument | Type | Description |
|---|---|---|
| chain | enum | |
| 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-aggregate | bool | |
| bgp-local-origin | bool | returns true if prefix is locally originated, e.g BGP network |
| suppress-hw-offload (syscap=crs_prestera) | bool | |
| use-te-nexthop | bool | |
| blackhole | bool | matches 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-path | string | regexp 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-scope | alt { enum () { } , num [1 .. 255] , composite { , } { , } } | |
| set-scope-target | alt { enum () { } , num [1 .. 255] , composite { , } { , } } | |
| set-bgp-weight | alt { enum () { } , num [ .. 65535] , composite { , } { , } } | |
| set-bgp-local-pref | alt { enum () { } , num , composite { , } { , } } | set a value of the BGP Local-Pref attribute |
| set-bgp-med | alt { enum () { } , num , composite { , } { , } } | |
| set-bgp-out-med | alt { enum () { } , num , composite { , } { , } } | |
| set-suppress-hw-offload (syscap=crs_prestera) | bool | |
| set-use-te-nexthop | bool | |
| set-blackhole | bool | |
| set-gw-check | enum (none | arp | ping | bfd) | set gateway check |
| set-gateway | address (flags=46) | |
| set-comment | string | |
| set-bgp-communities | object { } | set a value of the BGP Communities attribute |
| set-bgp-communities-list ( unset ) | enum | |
| set-bgp-ext-communities | object { } | |
| set-bgp-large-communities | object { } | |
| action ( unset ) | enum () | |
| jump-target-chain ( unset ) | enum | |
| rpki-verify ( unset ) | enum | Enable RPKI verification in the current chain from specified RPKI group |
| Read-only Argument | Type | Description |
|---|---|---|
| result | string |
routing/filter/num-list
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| Argument | Type | Description |
|---|---|---|
| list ( mandatory ) | enum | |
| range | range |
routing/filter/rule
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| I | inactive | inactive |
| Argument | Type | Description |
|---|---|---|
| chain ( mandatory ) | enum | |
| rule | remote |
routing/filter/select-rule
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| I | invalid | invalid |
| Argument | Type | Description |
|---|---|---|
| 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-take | num | |
| do-jump | enum |
routing/filter/sync
Type: Command
routing/filter/test-as-path-regexp
Type: Command
| Argument | Type | Description |
|---|---|---|
| regexp | string | |
| as-path | object { num } |
| Read-only Argument | Type | Description |
|---|---|---|
| result | string |