flowspec filtering-action¶
Configure Filtering Actions for a Flowspec
filtering-action Specification¶
Parameter Value Type Configuration Resource Element Name filtering-action Element URI /axapi/v3/flowspec/{name}/filtering-action Element Attributes filtering-action_attributes Partition Visibility shared Schema filtering-action schema
Operations Allowed:
Operation | Method | URI | Payload | |
---|---|---|---|---|
Create Object | POST | /axapi/v3/flowspec/{name}/filtering-action | ||
Get Object | GET | /axapi/v3/flowspec/{name}/filtering-action | ||
Modify Object | POST | /axapi/v3/flowspec/{name}/filtering-action | ||
Replace Object | PUT | /axapi/v3/flowspec/{name}/filtering-action | ||
Delete Object | DELETE | /axapi/v3/flowspec/{name}/filtering-action |
filtering-action attributes¶
copy-ip-host
Description Copy bit
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
copy-ip-host-nlri
Description Copy bit
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
copy-ipv6-host
Description Copy bit
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
copy-ipv6-host-nlri
Description Copy bit
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
dscp-val
Description Set DSCP value
Type: number
Range: 1-63
ecomm-custom-hex
Description Custom Extended Community in Hex
Type: string
Maximum Length: 48 characters
Maximum Length: 2 characters
ip-host
Description IPv4 host address
Type: string
Format: ipv4-address
ip-host-nlri
Description IPv4 host address
Type: string
Format: ipv4-address
ip-host-rt
Description Type 0x8108 - Route Target IPv4
Type: string
Format: ipv4-address
ipv6-host
Description IPv6 host address
Type: string
Format: ipv6-address
ipv6-host-nlri
Description IPv6 host address
Type: string
Format: ipv6-address
next-hop-nlri-type
Description ‘ip’: Type 0x0800 - IPv4 Address; ‘ipv6’: Type 0x0800 - IPv6 Address;
Type: string
Supported Values: ip, ipv6
next-hop-type
Description ‘ip’: Type 0x0800 - IPv4 Address; ‘ipv6’: Type 0x0800 - IPv6 Address;
Type: string
Supported Values: ip, ipv6
redirect
Description ‘next-hop-nlri’: Type 0x0800 - IP encoded in MP_REACH_NLRI Next-hop network; ‘next-hop’: Type 0x0800 - Extended community Next-hop (Per v2 dated Feb 2015); ‘vrf-route-target’: Type 0x8008 - Redirect to VRF Route Target;
Type: string
Supported Values: next-hop-nlri, next-hop, vrf-route-target
sample-log
Description Enable traffic sampling and logging
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
terminal-action
Description Evaluation stops after this rule if not set
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
traffic-class
Description Set IPv6 Traffic Class value
Type: number
Range: 1-128
traffic-marking
Description ‘dscp’: IPv4 DSCP; ‘ipv6-traffic-class’: IPv6 Traffic Class;
Type: string
Supported Values: dscp, ipv6-traffic-class
traffic-rate
Description Type 0x8006 - Apply rate (in Bytes per second) for this class of traffic
Type: number
Range: 0-4294967295
uuid
Description uuid of the object
Type: string
Maximum Length: 64 characters
Maximum Length: 1 characters
value-ip-host
Description 2-byte decimal value(local-administrator)
Type: number
Range: 1-65535
vrf-target-ip
Description ‘ip’: Type 0x8108 - Redirect to route-target IP;
Type: string
Supported Values: ip
Mutual Exclusion: vrf-target-ip and vrf-target-string are mutually exclusive
vrf-target-string
Description Type 0x8008(ASN-2:Index), 0x8208(ASN-4:Index) - Route Target AS
Type: string
Maximum Length: 31 characters
Maximum Length: 1 characters
Mutual Exclusion: vrf-target-string and vrf-target-ip are mutually exclusive