| Argument | Type | Description |
|---|
| chain | enum | |
| dst ( unset ) | super { !
, dst: alt { dst-list: enum
, dst: address (flags=46/+)
}
} | |
| dst-len ( unset ) | super { !
, dst-len: range [ .. 128]
} | |
| gateway ( unset ) | super { !
, dst: alt { dst-list: enum
, dst: address (flags=46/+)
}
} | |
| match-chain ( unset ) | super { !
, chain: enum
} | returns true if provided chain did not reject |
| routing-table ( unset ) | super { !
, table: enum
} | name of the routing table the route was imported from |
| afi ( unset ) | super { !
, afi: ubit (ip, ipv6, l2vpn, vpnv4, vpnv6, l2vpn-cisco)
} | address family of the route |
| protocol ( unset ) | super { !
, protocol: ubit (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 { !
, ospf-type: enum (intra | inter | ext1 | ext2 | nssa1 | nssa2) { intra:0, inter:1, ext1:2, ext2:3, nssa1:7, nssa2:8 }
} | |
| rpki ( unset ) | super { !
, rpki-type: enum (unknown | valid | invalid)
} | RPKI validation status of the prefix |
| bgp-origin ( unset ) | super { !
, bgp-origin: ubit (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 { !
, match: enum (any | any-list | equal | equal-list | includes | includes-list | subset | subset-list)
} | |
| bgp-communities ( unset ) | object | |
| bgp-communities-list-name ( unset ) | enum | |
| bgp-ext-communities-match ( unset ) | super { !
, match: enum (any | any-list | equal | equal-list | includes | includes-list | subset | subset-list)
} | |
| bgp-ext-communities ( unset ) | object | |
| bgp-ext-communities-list-name ( unset ) | enum | |
| bgp-large-communities-match ( unset ) | super { !
, match: enum (any | any-list | equal | equal-list | includes | includes-list | subset | subset-list)
} | |
| bgp-large-communities ( unset ) | object | |
| bgp-large-communities-list-name ( unset ) | enum | |
| distance ( unset ) | super { !
, value: alt { num-list: enum
, range: range [ .. 255]
}
} | |
| scope ( unset ) | super { !
, value: alt { num-list: enum
, range: range [ .. 255]
}
} | |
| scope-target ( unset ) | super { !
, value: alt { num-list: enum
, range: range [ .. 255]
}
} | |
| bgp-weight ( unset ) | super { !
, value: alt { num-list: enum
, range: range [ .. 65535]
}
} | |
| bgp-local-pref ( unset ) | super { !
, value: alt { num-list: enum
, range: range
}
} | |
| bgp-med ( unset ) | super { !
, value: alt { num-list: enum
, range: range
}
} | |
| bgp-out-med ( unset ) | super { !
, value: alt { num-list: enum
, range: range
}
} | |
| bgp-as-path-length ( unset ) | super { !
, value: alt { num-list: enum
, range: range
}
} | |
| ospf-metric ( unset ) | super { !
, value: alt { num-list: enum
, range: range
}
} | |
| set-distance ( unset ) | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num [1 .. 255]
, value: composite { inc: [ enum ( | add | sub)]
, val: num [1 .. 255]
}
} | |
| set-scope | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num [1 .. 255]
, value: composite { inc: enum ( | add | sub)
, val: num [1 .. 255]
}
} | |
| set-scope-target | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num [1 .. 255]
, value: composite { inc: enum ( | add | sub)
, val: num [1 .. 255]
}
} | |
| set-bgp-weight | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num [ .. 65535]
, value: composite { inc: enum ( | add | sub)
, val: num [ .. 65535]
}
} | |
| set-bgp-local-pref | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num
, value: composite { inc: enum ( | add | sub)
, val: num
}
} | set a value of the BGP Local-Pref attribute |
| set-bgp-med | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num
, value: composite { inc: enum ( | add | sub)
, val: num
}
} | |
| set-bgp-out-med | alt { num-props: enum (distance | scope | target-scope | dst-len | bgp-weight | bgp-med | bgp-out-med | bgp-local-pref | bgp-path-len | bgp-path-prepend | bgp-path-peer-prepend | bgp-input-local-as | bgp-input-remote-as | bgp-output-local-as | bgp-output-remote-as | ospf-metric | ospf-tag | ospf-ext-metric | ospf-ext-tag | rip-metric | rip-tag | rip-ext-metric | rip-ext-tag)
, val: num
, value: composite { inc: enum ( | add | sub)
, val: num
}
} | |
| 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) | |
| 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 (accept | reject | jump | return) | |
| jump-target-chain ( unset ) | enum | |
| rpki-verify ( unset ) | enum | Enable RPKI verification in the current chain from specified RPKI group |