Skip to main content
Version: 7.24

rule


interface/ethernet/switch/rule​

Syscap: rbswitch
Type: Directory

FlagNameDescription
Xdisabled
Iinvalid
Ddynamic
ArgumentTypeDescription
switch ( mandatory )enum
ports (syscap=!crs_prestera)multi { array-id, port: enum }
src-mac-addresssuper { address: macAddr , [mask] /macAddr }
dst-mac-addresssuper { address: macAddr , [mask] /macAddr }
mac-protocolalt { protocol-name: enum () , protocol-number: num [ .. 65535] }
vlan-headerenum (not-present | present)
vlan-idnum
vlan-prioritynum
src-addresssuper { address: ipAddr , [mask] /alt { bitmask: ipAddr , netmask: num [ .. 32] } }
dst-addresssuper { address: ipAddr , [mask] /alt { bitmask: ipAddr , netmask: num [ .. 32] } }
protocolalt { protocol-name: enum () , protocol-number: num [ .. 255] }
src-portrange
dst-portrange
dscpnum
src-address6super { address: ip6Addr , [mask] /alt { bitmask: ip6Addr , netmask: num } }
dst-address6super { address: ip6Addr , [mask] /alt { bitmask: ip6Addr , netmask: num } }
traffic-classnum
flow-labelnum
copy-to-cpubool
redirect-to-cpubool
mirror (syscap=switch-mirror-prestera)bool
new-dst-portsmulti { array-id, port: alt { port: enum , bond: iface_enum } }Set new-dst-ports to an empty string to drop packets on the hardware level
mirror-ports (syscap=switch-mv88e6xxx)multi { array-id, port: enum }
new-qos-profile (syscap=crs_prestera)enumAssign QoS profile to the matched packets
keep-qos-fields (syscap=crs_prestera)boolKeep the original QoS fields (PCP, DSCP) or replace them from the QoS profile?
new-vlan-idnum
new-vlan-prioritynum
new-vrf (syscap=crs_prestera)enumAssign VRF to the matched packets
ratenum
Read-only ArgumentTypeDescription
internal-prioritynum