| Argument | Type | Description |
|---|
| switch ( mandatory ) | enum | |
| ports (syscap=!crs_prestera) | multi { array-id, port: enum
} | |
| src-mac-address | super { address: macAddr
, [mask] /macAddr
} | |
| dst-mac-address | super { address: macAddr
, [mask] /macAddr
} | |
| mac-protocol | alt { protocol-name: enum ()
, protocol-number: num [ .. 65535]
} | |
| enum (not-present | present) | |
| vlan-id | num | |
| vlan-priority | num | |
| src-address | super { address: ipAddr
, [mask] /alt { bitmask: ipAddr
, netmask: num [ .. 32]
}
} | |
| dst-address | super { address: ipAddr
, [mask] /alt { bitmask: ipAddr
, netmask: num [ .. 32]
}
} | |
| protocol | alt { protocol-name: enum ()
, protocol-number: num [ .. 255]
} | |
| src-port | range | |
| dst-port | range | |
| dscp | num | |
| src-address6 | super { address: ip6Addr
, [mask] /alt { bitmask: ip6Addr
, netmask: num
}
} | |
| dst-address6 | super { address: ip6Addr
, [mask] /alt { bitmask: ip6Addr
, netmask: num
}
} | |
| traffic-class | num | |
| flow-label | num | |
| copy-to-cpu | bool | |
| redirect-to-cpu | bool | |
| mirror (syscap=switch-mirror-prestera) | bool | |
| new-dst-ports | multi { 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) | enum | Assign QoS profile to the matched packets |
| keep-qos-fields (syscap=crs_prestera) | bool | Keep the original QoS fields (PCP, DSCP) or replace them from the QoS profile? |
| new-vlan-id | num | |
| new-vlan-priority | num | |
| new-vrf (syscap=crs_prestera) | enum | Assign VRF to the matched packets |
| rate | num | |