By using the "redirect" option in the actions of template flowspec, you can add a community to send to the router. This option is usually used to redirect to a VRF on the same router.

The router will display:

By using the "redirect-to-nexthop-ietf" option, we can redirect the traffic matching the filters to any IPv4 or IPv6 address we want. Example:

The router will display:
