Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CommandParamsDescription
accept
accept matched prefix
reject
reject matched prefix
return
return to parent chain
jumpjump chain_namejump to specified chain
unsetunset prop_nameused to unset value of the following properties:
pref-src|bgp-med|bgp-out-med|bgp-local-pref
append
append at the end of the list
filter

delete

setset prop_writeable valueCommand is used to set new value to writeable properties. Value can be set from other readable properties of matching types. For numeric properties it is possible to prefix value with +/- which will increment or decrement current property value by given amount. For example, "set pref-src +1" will increment current pref-src by one, or extract value from other readable num property, "set distance +ospf-ext-metric"
rpki-verifyrpki-verify rpki_group_nameEnable RPKI verification in current chain from specified RPKI group.


Operators

Matcher

...

Operators

OperatorDescriptionExample
&&Logical AND operatorif (dst == 192.168.0.0/16 && dst-len in 16-32) {reject;}
||Logical OR operator
notLogical NOT operatorif ( not bgp-network) {reject; }

Num Prop Operators

OperatorDescription
inreturn true if the value is in provided numeric range. Numeric range can be written in following formats: {int..int}, {int-int}
==return true if numeric values are equal
!=return true if numeric values are not equal
>return true if the left numeric value is greater than the right numeric value
<return true if the left numeric value is less than the right numeric value
>=return true if the left numeric value is greater than or equal to the right numeric value
<=return true if the left numeric value is less than or equal to the right numeric value

Prefix Operators

OperatorDescription
inReturn true if the prefix is the subnet of provided network
!=Return true if the prefix is not equal to provided value
==Return true if the prefix is equal to provided value

BGP Community Operators

OperatorDescriptionExample
equalreturn true if provided communities is equal to the property value
equal-set

any

any-set

includes

includes-set

subset

subset-set

any-regexp

subset-regexp

String Operators

OperatorDescription
findCheck if provided substring is the part of the property value
regexpMatch string regexp of the property value

...