FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
Packet steering into SR-MPLS Policies. More...
Go to the source code of this file.
Functions | |
int | sr_mpls_steering_policy (int is_del, mpls_label_t bsid, u32 sr_policy_index, u32 table_id, ip46_address_t *prefix, u32 mask_width, u8 traffic_type) |
Steer traffic L3 traffic through a given SR-MPLS policy. More... | |
static clib_error_t * | sr_mpls_steer_policy_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
static clib_error_t * | show_sr_mpls_steering_policies_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
clib_error_t * | sr_mpls_steering_init (vlib_main_t *vm) |
Variables | |
static vlib_cli_command_t | sr_mpls_steer_policy_command |
(constructor) VLIB_CLI_COMMAND (sr_mpls_steer_policy_command) More... | |
static vlib_cli_command_t | show_sr_mpls_steering_policies_command |
(constructor) VLIB_CLI_COMMAND (show_sr_mpls_steering_policies_command) More... | |
Packet steering into SR-MPLS Policies.
This file is in charge of handling the FIB appropiatly to steer packets through SR Policies as defined in 'sr_mpls_policy.c'. Notice that here we are only doing steering. SR policy application is done in sr_policy_rewrite.c
Supports:
Definition in file sr_mpls_steering.c.
|
static |
|
static |
clib_error_t* sr_mpls_steering_init | ( | vlib_main_t * | vm | ) |
int sr_mpls_steering_policy | ( | int | is_del, |
mpls_label_t | bsid, | ||
u32 | sr_policy_index, | ||
u32 | table_id, | ||
ip46_address_t * | prefix, | ||
u32 | mask_width, | ||
u8 | traffic_type | ||
) |
Steer traffic L3 traffic through a given SR-MPLS policy.
is_del | |
bsid | is the bindingSID of the SR Policy (alt to sr_policy_index) |
sr_policy | is the index of the SR Policy (alt to bsid) |
table_id | is the VRF where to install the FIB entry for the BSID |
prefix | is the IPv4/v6 address for L3 traffic type |
mask_width | is the mask for L3 traffic type |
traffic_type | describes the type of traffic |
Definition at line 56 of file sr_mpls_steering.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_sr_mpls_steering_policies_command)
Definition at line 424 of file sr_mpls_steering.c.
|
static |
(constructor) VLIB_CLI_COMMAND (sr_mpls_steer_policy_command)
Definition at line 368 of file sr_mpls_steering.c.