|
OpenNSL API Guide and Reference Manual
|
Data Structures | |
| struct | opennsl_mpls_egress_label_s |
| opennsl_mpls_egress_label_s More... | |
| struct | opennsl_mpls_entropy_identifier_s |
| MPLS Entropy identifier Config Structure. More... | |
| struct | opennsl_mpls_exp_map_s |
| MPLS EXP Map Structure. More... | |
| struct | opennsl_mpls_port_s |
| MPLS port type. More... | |
| struct | opennsl_mpls_range_action_s |
| MPLS range action. More... | |
| struct | opennsl_mpls_tunnel_switch_s |
| MPLS tunnel switch structure. More... | |
| struct | opennsl_mpls_vpn_config_s |
| MPLS VPN Config Structure. More... | |
Files | |
| file | mpls.h |
| file | mplsX.h |
Macros | |
| #define | OPENNSL_MPLS_EGRESS_LABEL_ACTION_VALID 0x00002000 |
| When set action is taken from action field. | |
| #define | OPENNSL_MPLS_EGRESS_LABEL_REPLACE 0x00004000 |
| Replace existing entry. | |
| #define | OPENNSL_MPLS_EGRESS_LABEL_TTL_COPY 0x00000002 |
| #define | OPENNSL_MPLS_EGRESS_LABEL_TTL_DECREMENT 0x00000004 |
| #define | OPENNSL_MPLS_EGRESS_LABEL_TTL_SET 0x00000001 |
| #define | OPENNSL_MPLS_EGRESS_LABEL_WITH_ID 0x00008000 |
| Add using the specified ID. | |
| #define | OPENNSL_MPLS_SWITCH_INNER_TTL 0x00000100 |
| (POP/PHP) Get TTL from header following popped label. | |
| #define | OPENNSL_MPLS_SWITCH_TTL_DECREMENT 0x00000200 |
| Decrement the TTL value by 1. | |
| #define | OPENNSL_MPLS_VPN_L3 0x00000001 |
| #define | OPENNSL_MPLS_VPN_REPLACE 0x00000008 |
| #define | OPENNSL_MPLS_VPN_VPLS 0x00000004 |
| #define | OPENNSL_MPLS_VPN_VPWS 0x00000002 |
| #define | OPENNSL_MPLS_VPN_WITH_ID 0x00000010 |
Functions | |
| int | opennsl_mpls_cleanup (int unit) LIB_DLL_EXPORTED |
| Detach the MPLS software module. | |
| void | opennsl_mpls_egress_label_t_init (opennsl_mpls_egress_label_t *label) LIB_DLL_EXPORTED |
| Initialize the MPLS egress label structure. | |
| int | opennsl_mpls_entropy_identifier_add (int unit, uint32 options, opennsl_mpls_entropy_identifier_t *info) LIB_DLL_EXPORTED |
| Add an MPLS Entropy Label Identifier. | |
| int | opennsl_mpls_entropy_identifier_delete (int unit, opennsl_mpls_entropy_identifier_t *info) LIB_DLL_EXPORTED |
| Delete an MPLS Entropy Label Identifier. | |
| int | opennsl_mpls_entropy_identifier_delete_all (int unit) LIB_DLL_EXPORTED |
| Delete all MPLS Entropy Label Identifiers. | |
| int | opennsl_mpls_entropy_identifier_get (int unit, opennsl_mpls_entropy_identifier_t *info) LIB_DLL_EXPORTED |
| Get information about an MPLS Entropy Label Identifier. | |
| void | opennsl_mpls_entropy_identifier_t_init (opennsl_mpls_entropy_identifier_t *info) LIB_DLL_EXPORTED |
| Initialize MPLS Entropy label identifier structure. | |
| int | opennsl_mpls_entropy_identifier_traverse (int unit, opennsl_mpls_entropy_identifier_traverse_cb cb, void *user_data) LIB_DLL_EXPORTED |
| Traverse all valid MPLS entropy label identifier entries and call the supplied callback routine. | |
| int | opennsl_mpls_exp_map_create (int unit, uint32 flags, int *exp_map_id) LIB_DLL_EXPORTED |
| Create an MPLS EXP map instance. | |
| int | opennsl_mpls_exp_map_destroy (int unit, int exp_map_id) LIB_DLL_EXPORTED |
| Destroy an MPLS EXP map instance. | |
| int | opennsl_mpls_exp_map_get (int unit, int exp_map_id, opennsl_mpls_exp_map_t *exp_map) LIB_DLL_EXPORTED |
| Get the EXP mapping parameters for the specified EXP map. | |
| int | opennsl_mpls_exp_map_set (int unit, int exp_map_id, opennsl_mpls_exp_map_t *exp_map) LIB_DLL_EXPORTED |
| Set the EXP mapping parameters for the specified EXP map. | |
| void | opennsl_mpls_exp_map_t_init (opennsl_mpls_exp_map_t *exp_map) LIB_DLL_EXPORTED |
| Initialize the MPLS EXP map structure. | |
| int | opennsl_mpls_init (int unit) LIB_DLL_EXPORTED |
| Initialize the OPENNSL MPLS subsystem. | |
| int | opennsl_mpls_label_stat_attach (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, uint32 stat_counter_id) LIB_DLL_EXPORTED |
| Attach counters entries to the given MPLS label and gport. | |
| int | opennsl_mpls_label_stat_clear (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat) LIB_DLL_EXPORTED |
| Clear MPLS Stats. | |
| int | opennsl_mpls_label_stat_counter_get (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Get counter statistic values for specific MPLS label and gport. | |
| int | opennsl_mpls_label_stat_counter_set (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Set counter statistic values for specific MPLS label and gport. | |
| int | opennsl_mpls_label_stat_counter_sync_get (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Force an immediate counter update and retrieve counter statistic values for specific MPLS label and gport. | |
| int | opennsl_mpls_label_stat_detach (int unit, opennsl_mpls_label_t label, opennsl_gport_t port) LIB_DLL_EXPORTED |
| Detach counters entries to the given MPLS label and gport. | |
| int | opennsl_mpls_label_stat_enable_set (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, int enable) LIB_DLL_EXPORTED |
| Enable/disable statistics collection for MPLS label or MPLS gport. | |
| int | opennsl_mpls_label_stat_get (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint64 *val) LIB_DLL_EXPORTED |
| Get MPLS Stats. | |
| int | opennsl_mpls_label_stat_get32 (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 *val) LIB_DLL_EXPORTED |
| Get MPLS Stats. | |
| int | opennsl_mpls_label_stat_id_get (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 *stat_counter_id) LIB_DLL_EXPORTED |
| Get stat counter ID associated with given MPLS label and gport. | |
| int | opennsl_mpls_label_stat_sync_get (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint64 *val) LIB_DLL_EXPORTED |
| Force an immediate counter update and retrieve MPLS Stats. | |
| int | opennsl_mpls_label_stat_sync_get32 (int unit, opennsl_mpls_label_t label, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 *val) LIB_DLL_EXPORTED |
| Force an immediate counter update and retrieve MPLS Stats. | |
| int | opennsl_mpls_port_add (int unit, opennsl_vpn_t vpn, opennsl_mpls_port_t *mpls_port) LIB_DLL_EXPORTED |
| Add an MPLS port to an L2 VPN. | |
| int | opennsl_mpls_port_delete (int unit, opennsl_vpn_t vpn, opennsl_gport_t mpls_port_id) LIB_DLL_EXPORTED |
| Delete an MPLS port from an L2 VPN. | |
| int | opennsl_mpls_port_delete_all (int unit, opennsl_vpn_t vpn) LIB_DLL_EXPORTED |
| Delete an MPLS port from an L2 VPN. | |
| int | opennsl_mpls_port_get (int unit, opennsl_vpn_t vpn, opennsl_mpls_port_t *mpls_port) LIB_DLL_EXPORTED |
| Get an MPLS port from an L2 VPN. | |
| int | opennsl_mpls_port_get_all (int unit, opennsl_vpn_t vpn, int port_max, opennsl_mpls_port_t *port_array, int *port_count) LIB_DLL_EXPORTED |
| Get all MPLS ports from an L2 VPN. | |
| int | opennsl_mpls_port_stat_attach (int unit, opennsl_vpn_t vpn, opennsl_gport_t port, uint32 stat_counter_id) LIB_DLL_EXPORTED |
| Attach counters entries to the given MPLS gport and vpn. | |
| int | opennsl_mpls_port_stat_counter_get (int unit, opennsl_vpn_t vpn, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Get counter statistic values for specific vpn and gport. | |
| int | opennsl_mpls_port_stat_counter_set (int unit, opennsl_vpn_t vpn, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Set counter statistic values for specific vpn and gport. | |
| int | opennsl_mpls_port_stat_counter_sync_get (int unit, opennsl_vpn_t vpn, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Force an immediate counter update and retrieve get counter statistic values for specific vpn and gport. | |
| int | opennsl_mpls_port_stat_detach (int unit, opennsl_vpn_t vpn, opennsl_gport_t port) LIB_DLL_EXPORTED |
| Detach counters entries to the given MPLS port and vpn. | |
| int | opennsl_mpls_port_stat_enable_set (int unit, opennsl_gport_t mpls_port, int enable) LIB_DLL_EXPORTED |
| Enable or disable collection of MPLS port statistics. | |
| int | opennsl_mpls_port_stat_get (int unit, opennsl_gport_t mpls_port, opennsl_cos_t cos, opennsl_mpls_port_stat_t stat, uint64 *val) LIB_DLL_EXPORTED |
| Get the specified statistics per MPLS/MEF port. | |
| int | opennsl_mpls_port_stat_get32 (int unit, opennsl_gport_t mpls_port, opennsl_cos_t cos, opennsl_mpls_port_stat_t stat, uint32 *val) LIB_DLL_EXPORTED |
| Get the specified statistics per MPLS/MEF port. | |
| int | opennsl_mpls_port_stat_id_get (int unit, opennsl_vpn_t vpn, opennsl_gport_t port, opennsl_mpls_stat_t stat, uint32 *stat_counter_id) LIB_DLL_EXPORTED |
| Get stat counter ID associated with given MPLS gport and VPN. | |
| int | opennsl_mpls_port_stat_set (int unit, opennsl_gport_t mpls_port, opennsl_cos_t cos, opennsl_mpls_port_stat_t stat, uint64 val) LIB_DLL_EXPORTED |
| Set the specified statistic to the indicated value. | |
| int | opennsl_mpls_port_stat_set32 (int unit, opennsl_gport_t mpls_port, opennsl_cos_t cos, opennsl_mpls_port_stat_t stat, uint32 val) LIB_DLL_EXPORTED |
| void | opennsl_mpls_port_t_init (opennsl_mpls_port_t *mpls_port) LIB_DLL_EXPORTED |
| Initialize the MPLS port structure. | |
| int | opennsl_mpls_range_action_add (int unit, opennsl_mpls_label_t label_low, opennsl_mpls_label_t label_high, opennsl_mpls_range_action_t *action) LIB_DLL_EXPORTED |
| Set range of labels per in lif. | |
| int | opennsl_mpls_range_action_get (int unit, opennsl_mpls_label_t label_low, opennsl_mpls_label_t label_high, opennsl_mpls_range_action_t *action) LIB_DLL_EXPORTED |
| Get range of labels per in lif. | |
| int | opennsl_mpls_range_action_remove (int unit, opennsl_mpls_label_t label_low, opennsl_mpls_label_t label_high) LIB_DLL_EXPORTED |
| Remove range of labels per in lif. | |
| void | opennsl_mpls_range_action_t_init (opennsl_mpls_range_action_t *label) LIB_DLL_EXPORTED |
| Initialize the MPLS range action structure. | |
| int | opennsl_mpls_tunnel_initiator_clear (int unit, opennsl_if_t intf) LIB_DLL_EXPORTED |
| Clear the MPLS tunnel initiator parameters for an L3 interface. | |
| int | opennsl_mpls_tunnel_initiator_clear_all (int unit) LIB_DLL_EXPORTED |
| Clear all MPLS tunnel initiator information. | |
| int | opennsl_mpls_tunnel_initiator_create (int unit, opennsl_if_t intf, int num_labels, opennsl_mpls_egress_label_t *label_array) LIB_DLL_EXPORTED |
| int | opennsl_mpls_tunnel_initiator_get (int unit, opennsl_if_t intf, int label_max, opennsl_mpls_egress_label_t *label_array, int *label_count) LIB_DLL_EXPORTED |
| Get the MPLS tunnel initiator parameters from an L3 interface. | |
| int | opennsl_mpls_tunnel_initiator_set (int unit, opennsl_if_t intf, int num_labels, opennsl_mpls_egress_label_t *label_array) LIB_DLL_EXPORTED |
| Set the MPLS tunnel initiator parameters for an L3 interface. | |
| int | opennsl_mpls_tunnel_stat_attach (int unit, opennsl_if_t intf_id, uint32 stat_counter_id) LIB_DLL_EXPORTED |
| Attach statistics entity to the MPLS tunnel derived from the given L3 Egress interface. | |
| int | opennsl_mpls_tunnel_stat_counter_get (int unit, opennsl_if_t intf_id, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Get counter value for the specified MPLS statistic type and Tunnel interface derived from the given L3 interface ID. | |
| int | opennsl_mpls_tunnel_stat_counter_set (int unit, opennsl_if_t intf_id, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Set the counter value for the specified MPLS statistic type and Tunnel interface derived derived from the given L3 Interface ID. | |
| int | opennsl_mpls_tunnel_stat_counter_sync_get (int unit, opennsl_if_t intf_id, opennsl_mpls_stat_t stat, uint32 num_entries, uint32 *counter_indexes, opennsl_stat_value_t *counter_values) LIB_DLL_EXPORTED |
| Force an immediate counter update and retrieve the specified counter statistic for a MPLS tunnel. | |
| int | opennsl_mpls_tunnel_stat_detach (int unit, opennsl_if_t intf_id) LIB_DLL_EXPORTED |
| Detach statistics entity to the MPLS tunnel derived from the given L3 Egress interface. | |
| int | opennsl_mpls_tunnel_stat_id_get (int unit, opennsl_if_t intf_id, opennsl_mpls_stat_t stat, uint32 *stat_counter_id) LIB_DLL_EXPORTED |
| Get stat counter ID associated with the MPLS tunnel derived from the given L3 interface ID. | |
| int | opennsl_mpls_tunnel_switch_add (int unit, opennsl_mpls_tunnel_switch_t *info) LIB_DLL_EXPORTED |
| Add an MPLS label entry. | |
| int | opennsl_mpls_tunnel_switch_create (int unit, opennsl_mpls_tunnel_switch_t *info) LIB_DLL_EXPORTED |
| Add an MPLS label entry. | |
| int | opennsl_mpls_tunnel_switch_delete (int unit, opennsl_mpls_tunnel_switch_t *info) LIB_DLL_EXPORTED |
| Delete an MPLS label entry. | |
| int | opennsl_mpls_tunnel_switch_delete_all (int unit) LIB_DLL_EXPORTED |
| Delete all MPLS label entries. | |
| int | opennsl_mpls_tunnel_switch_get (int unit, opennsl_mpls_tunnel_switch_t *info) LIB_DLL_EXPORTED |
| Get an MPLS label entry. | |
| void | opennsl_mpls_tunnel_switch_t_init (opennsl_mpls_tunnel_switch_t *info) LIB_DLL_EXPORTED |
| Initialize the MPLS tunnel switch structure. | |
| int | opennsl_mpls_tunnel_switch_traverse (int unit, opennsl_mpls_tunnel_switch_traverse_cb cb, void *user_data) LIB_DLL_EXPORTED |
| Traverse all valid MPLS label entries and call the supplied callback routine. | |
| void | opennsl_mpls_vpn_config_t_init (opennsl_mpls_vpn_config_t *info) LIB_DLL_EXPORTED |
| Initialize the MPLS VPN config structure. | |
| int | opennsl_mpls_vpn_id_create (int unit, opennsl_mpls_vpn_config_t *info) LIB_DLL_EXPORTED |
| Create an MPLS VPN. | |
| int | opennsl_mpls_vpn_id_destroy (int unit, opennsl_vpn_t vpn) LIB_DLL_EXPORTED |
| Destroy an MPLS VPN. | |
| int | opennsl_mpls_vpn_id_destroy_all (int unit) LIB_DLL_EXPORTED |
| Destroy an MPLS VPN. | |
| int | opennsl_mpls_vpn_id_get (int unit, opennsl_vpn_t vpn, opennsl_mpls_vpn_config_t *info) LIB_DLL_EXPORTED |
| Get an MPLS VPN. | |
| int | opennsl_mpls_vpn_traverse (int unit, opennsl_mpls_vpn_traverse_cb cb, void *user_data) LIB_DLL_EXPORTED |
| Traverse all valid MPLS VPN entries and call the supplied callback routine. | |
| #define OPENNSL_MPLS_EGRESS_LABEL_ACTION_VALID 0x00002000 |
| #define OPENNSL_MPLS_EGRESS_LABEL_REPLACE 0x00004000 |
| #define OPENNSL_MPLS_EGRESS_LABEL_WITH_ID 0x00008000 |
| #define OPENNSL_MPLS_SWITCH_INNER_TTL 0x00000100 |
| #define OPENNSL_MPLS_SWITCH_TTL_DECREMENT 0x00000200 |
| typedef enum opennsl_mpls_egress_action_e opennsl_mpls_egress_action_t |
MPLS label egress actions.
MPLS Entropy identifier Config Structure.
| typedef int(* opennsl_mpls_entropy_identifier_traverse_cb)(int unit, opennsl_mpls_entropy_identifier_t *info, void *user_data) |
| typedef struct opennsl_mpls_exp_map_s opennsl_mpls_exp_map_t |
MPLS EXP Map Structure.
VCCV Control Channel Type.
| typedef enum opennsl_mpls_port_match_e opennsl_mpls_port_match_t |
MPLS port match criteria.
| typedef enum opennsl_mpls_port_stat_e opennsl_mpls_port_stat_t |
Types of statistics that are maintained per MPLS gport.
| typedef struct opennsl_mpls_port_s opennsl_mpls_port_t |
MPLS port type.
| typedef struct opennsl_mpls_range_action_s opennsl_mpls_range_action_t |
MPLS range action.
| typedef enum opennsl_mpls_stat_e opennsl_mpls_stat_t |
MPLS statistics counters.
| typedef enum opennsl_mpls_switch_action_e opennsl_mpls_switch_action_t |
MPLS label actions.
| typedef struct opennsl_mpls_tunnel_switch_s opennsl_mpls_tunnel_switch_t |
MPLS tunnel switch structure.
| typedef int(* opennsl_mpls_tunnel_switch_traverse_cb)(int unit, opennsl_mpls_tunnel_switch_t *info, void *user_data) |
| typedef struct opennsl_mpls_vpn_config_s opennsl_mpls_vpn_config_t |
MPLS VPN Config Structure.
| typedef int(* opennsl_mpls_vpn_traverse_cb)(int unit, opennsl_mpls_vpn_config_t *info, void *user_data) |
MPLS port match criteria.
Types of statistics that are maintained per MPLS gport.
| enum opennsl_mpls_stat_e |
| int opennsl_mpls_cleanup | ( | int | unit | ) |
Detach the MPLS software module.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| void opennsl_mpls_egress_label_t_init | ( | opennsl_mpls_egress_label_t * | label | ) |
Initialize the MPLS egress label structure.
| label | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_entropy_identifier_add | ( | int | unit, |
| uint32 | options, | ||
| opennsl_mpls_entropy_identifier_t * | info | ||
| ) |
Add an MPLS Entropy Label Identifier.
| unit | [IN] Unit number. |
| options | [IN] MPLS_ENTROPY_LABEL_* |
| info | [IN] |
| OPENNSL_E_XXX |
| int opennsl_mpls_entropy_identifier_delete | ( | int | unit, |
| opennsl_mpls_entropy_identifier_t * | info | ||
| ) |
Delete an MPLS Entropy Label Identifier.
| unit | [IN] Unit number. |
| info | [IN] |
| OPENNSL_E_XXX |
| int opennsl_mpls_entropy_identifier_delete_all | ( | int | unit | ) |
Delete all MPLS Entropy Label Identifiers.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_mpls_entropy_identifier_get | ( | int | unit, |
| opennsl_mpls_entropy_identifier_t * | info | ||
| ) |
Get information about an MPLS Entropy Label Identifier.
| unit | [IN] Unit number. |
| info | [IN,OUT] |
| OPENNSL_E_XXX |
| void opennsl_mpls_entropy_identifier_t_init | ( | opennsl_mpls_entropy_identifier_t * | info | ) |
Initialize MPLS Entropy label identifier structure.
| info | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_entropy_identifier_traverse | ( | int | unit, |
| opennsl_mpls_entropy_identifier_traverse_cb | cb, | ||
| void * | user_data | ||
| ) |
Traverse all valid MPLS entropy label identifier entries and call the supplied callback routine.
| unit | [IN] Unit number. |
| cb | [IN] User callback function, called once per MPLS entry |
| user_data | [IN] Cookie |
| OPENNSL_E_XXX |
| int opennsl_mpls_exp_map_create | ( | int | unit, |
| uint32 | flags, | ||
| int * | exp_map_id | ||
| ) |
Create an MPLS EXP map instance.
| unit | [IN] Unit number. |
| flags | [IN] OPENNSL_MPLS_EXP_MAP_* |
| exp_map_id | [IN,OUT] Pointer to integer. If the call is successful, the EXP map ID allocated by the driver is filled into this integer location. If OPENNSL_MPLS_EXP_MAP_WITH_ID flag is set, a valid EXP map ID should be passed in. |
| OPENNSL_E_XXX |
| int opennsl_mpls_exp_map_destroy | ( | int | unit, |
| int | exp_map_id | ||
| ) |
Destroy an MPLS EXP map instance.
| unit | [IN] Unit number. |
| exp_map_id | [IN] EXP map ID to be destroyed. |
| OPENNSL_E_XXX |
| int opennsl_mpls_exp_map_get | ( | int | unit, |
| int | exp_map_id, | ||
| opennsl_mpls_exp_map_t * | exp_map | ||
| ) |
Get the EXP mapping parameters for the specified EXP map.
| unit | [IN] Unit number. |
| exp_map_id | [IN] EXP map ID |
| exp_map | [IN,OUT] EXP map ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_exp_map_set | ( | int | unit, |
| int | exp_map_id, | ||
| opennsl_mpls_exp_map_t * | exp_map | ||
| ) |
Set the EXP mapping parameters for the specified EXP map.
| unit | [IN] Unit number. |
| exp_map_id | [IN] EXP map ID |
| exp_map | [IN] EXP map ID |
| OPENNSL_E_XXX |
| void opennsl_mpls_exp_map_t_init | ( | opennsl_mpls_exp_map_t * | exp_map | ) |
Initialize the MPLS EXP map structure.
| exp_map | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_init | ( | int | unit | ) |
Initialize the OPENNSL MPLS subsystem.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_mpls_label_stat_attach | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| uint32 | stat_counter_id | ||
| ) |
Attach counters entries to the given MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| stat_counter_id | [IN] Stat Counter ID |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_clear | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat | ||
| ) |
Clear MPLS Stats.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] Gport |
| stat | [IN] Specify the Stat Type |
| OPENNSL_E_XXX |
| int opennsl_mpls_label_stat_counter_get | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Get counter statistic values for specific MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_counter_set | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Set counter statistic values for specific MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to set that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [IN] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_counter_sync_get | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Force an immediate counter update and retrieve counter statistic values for specific MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_detach | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port | ||
| ) |
Detach counters entries to the given MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_enable_set | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| int | enable | ||
| ) |
Enable/disable statistics collection for MPLS label or MPLS gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS label |
| port | [IN] gport |
| enable | [IN] Non-zero to enable counter collection, zero to disable. |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_get | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint64 * | val | ||
| ) |
Get MPLS Stats.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] Gport |
| stat | [IN] Specify the Stat Type |
| val | [OUT] Pointer to stats value |
| OPENNSL_E_XXX |
| int opennsl_mpls_label_stat_get32 | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 * | val | ||
| ) |
Get MPLS Stats.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] Gport |
| stat | [IN] Specify the Stat Type |
| val | [OUT] Pointer to stats value |
| OPENNSL_E_XXX |
| int opennsl_mpls_label_stat_id_get | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 * | stat_counter_id | ||
| ) |
Get stat counter ID associated with given MPLS label and gport.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter |
| stat_counter_id | [OUT] Stat Counter ID |
| OPENNSL_E_xxx |
| int opennsl_mpls_label_stat_sync_get | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint64 * | val | ||
| ) |
Force an immediate counter update and retrieve MPLS Stats.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] Gport |
| stat | [IN] Specify the Stat Type |
| val | [OUT] Pointer to stats value |
| OPENNSL_E_XXX |
| int opennsl_mpls_label_stat_sync_get32 | ( | int | unit, |
| opennsl_mpls_label_t | label, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 * | val | ||
| ) |
Force an immediate counter update and retrieve MPLS Stats.
| unit | [IN] Unit number. |
| label | [IN] MPLS Label |
| port | [IN] Gport |
| stat | [IN] Specify the Stat Type |
| val | [OUT] Pointer to stats value |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_add | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_mpls_port_t * | mpls_port | ||
| ) |
Add an MPLS port to an L2 VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| mpls_port | [IN,OUT] MPLS port information |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_delete | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | mpls_port_id | ||
| ) |
Delete an MPLS port from an L2 VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| mpls_port_id | [IN] Mpls port ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_delete_all | ( | int | unit, |
| opennsl_vpn_t | vpn | ||
| ) |
Delete an MPLS port from an L2 VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_get | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_mpls_port_t * | mpls_port | ||
| ) |
Get an MPLS port from an L2 VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| mpls_port | [IN,OUT] MPLS port information |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_get_all | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| int | port_max, | ||
| opennsl_mpls_port_t * | port_array, | ||
| int * | port_count | ||
| ) |
Get all MPLS ports from an L2 VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port_max | [IN] Maximum number of ports in array |
| port_array | [OUT] Array of MPLS ports |
| port_count | [OUT] Number of ports returned in array |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_stat_attach | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port, | ||
| uint32 | stat_counter_id | ||
| ) |
Attach counters entries to the given MPLS gport and vpn.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| stat_counter_id | [IN] Stat Counter ID |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_counter_get | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Get counter statistic values for specific vpn and gport.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_counter_set | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Set counter statistic values for specific vpn and gport.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to set that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [IN] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_counter_sync_get | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Force an immediate counter update and retrieve get counter statistic values for specific vpn and gport.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_detach | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port | ||
| ) |
Detach counters entries to the given MPLS port and vpn.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_enable_set | ( | int | unit, |
| opennsl_gport_t | mpls_port, | ||
| int | enable | ||
| ) |
Enable or disable collection of MPLS port statistics.
| unit | [IN] Unit number. |
| mpls_port | [IN] MEF port |
| enable | [IN] Non-zero to enable counter collection, zero to disable. |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_stat_get | ( | int | unit, |
| opennsl_gport_t | mpls_port, | ||
| opennsl_cos_t | cos, | ||
| opennsl_mpls_port_stat_t | stat, | ||
| uint64 * | val | ||
| ) |
Get the specified statistics per MPLS/MEF port.
| unit | [IN] Unit number. |
| mpls_port | [IN] MEF port. |
| cos | [IN] Class of service. |
| stat | [IN] Type of statistics. |
| val | [OUT] Pointer to the retrieved value. |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_stat_get32 | ( | int | unit, |
| opennsl_gport_t | mpls_port, | ||
| opennsl_cos_t | cos, | ||
| opennsl_mpls_port_stat_t | stat, | ||
| uint32 * | val | ||
| ) |
Get the specified statistics per MPLS/MEF port.
| unit | [IN] Unit number. |
| mpls_port | [IN] MEF port. |
| cos | [IN] Class of service. |
| stat | [IN] Type of statistics. |
| val | [OUT] Pointer to the retrieved value. |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_stat_id_get | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_gport_t | port, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 * | stat_counter_id | ||
| ) |
Get stat counter ID associated with given MPLS gport and VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| port | [IN] MPLS Gport |
| stat | [IN] Type of the counter |
| stat_counter_id | [OUT] Stat Counter ID |
| OPENNSL_E_xxx |
| int opennsl_mpls_port_stat_set | ( | int | unit, |
| opennsl_gport_t | mpls_port, | ||
| opennsl_cos_t | cos, | ||
| opennsl_mpls_port_stat_t | stat, | ||
| uint64 | val | ||
| ) |
Set the specified statistic to the indicated value.
| unit | [IN] Unit number. |
| mpls_port | [IN] MEF port. |
| cos | [IN] COS. |
| stat | [IN] Type of statistics to set. |
| val | [IN] The new value to set. |
| OPENNSL_E_XXX |
| int opennsl_mpls_port_stat_set32 | ( | int | unit, |
| opennsl_gport_t | mpls_port, | ||
| opennsl_cos_t | cos, | ||
| opennsl_mpls_port_stat_t | stat, | ||
| uint32 | val | ||
| ) |
| unit | [IN] Unit number. |
| mpls_port | [IN] |
| cos | [IN] |
| stat | [IN] |
| val | [IN] |
| OPENNSL_E_xxx |
| void opennsl_mpls_port_t_init | ( | opennsl_mpls_port_t * | mpls_port | ) |
Initialize the MPLS port structure.
| mpls_port | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_range_action_add | ( | int | unit, |
| opennsl_mpls_label_t | label_low, | ||
| opennsl_mpls_label_t | label_high, | ||
| opennsl_mpls_range_action_t * | action | ||
| ) |
Set range of labels per in lif.
| unit | [IN] Unit number. |
| label_low | [IN] lower label |
| label_high | [IN] higher label |
| action | [IN] range action |
| OPENNSL_E_xxx |
| int opennsl_mpls_range_action_get | ( | int | unit, |
| opennsl_mpls_label_t | label_low, | ||
| opennsl_mpls_label_t | label_high, | ||
| opennsl_mpls_range_action_t * | action | ||
| ) |
Get range of labels per in lif.
| unit | [IN] Unit number. |
| label_low | [IN] lower label |
| label_high | [IN] higher label |
| action | [IN,OUT] range action |
| OPENNSL_E_xxx |
| int opennsl_mpls_range_action_remove | ( | int | unit, |
| opennsl_mpls_label_t | label_low, | ||
| opennsl_mpls_label_t | label_high | ||
| ) |
Remove range of labels per in lif.
| unit | [IN] Unit number. |
| label_low | [IN] lower label |
| label_high | [IN] higher label |
| OPENNSL_E_xxx |
| void opennsl_mpls_range_action_t_init | ( | opennsl_mpls_range_action_t * | label | ) |
Initialize the MPLS range action structure.
| label | [IN,OUT] |
| None. |
| int opennsl_mpls_tunnel_initiator_clear | ( | int | unit, |
| opennsl_if_t | intf | ||
| ) |
Clear the MPLS tunnel initiator parameters for an L3 interface.
| unit | [IN] Unit number. |
| intf | [IN] The egress L3 interface |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_initiator_clear_all | ( | int | unit | ) |
Clear all MPLS tunnel initiator information.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_initiator_create | ( | int | unit, |
| opennsl_if_t | intf, | ||
| int | num_labels, | ||
| opennsl_mpls_egress_label_t * | label_array | ||
| ) |
| unit | [IN] Unit number. |
| intf | [IN] |
| num_labels | [IN] |
| label_array | [IN,OUT] |
| OPENNSL_E_xxx |
| int opennsl_mpls_tunnel_initiator_get | ( | int | unit, |
| opennsl_if_t | intf, | ||
| int | label_max, | ||
| opennsl_mpls_egress_label_t * | label_array, | ||
| int * | label_count | ||
| ) |
Get the MPLS tunnel initiator parameters from an L3 interface.
| unit | [IN] Unit number. |
| intf | [IN] The egress L3 interface |
| label_max | [IN] Number of entries in label_array |
| label_array | [OUT] MPLS header information |
| label_count | [OUT] Actual number of labels returned |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_initiator_set | ( | int | unit, |
| opennsl_if_t | intf, | ||
| int | num_labels, | ||
| opennsl_mpls_egress_label_t * | label_array | ||
| ) |
Set the MPLS tunnel initiator parameters for an L3 interface.
| unit | [IN] Unit number. |
| intf | [IN] The egress L3 interface |
| num_labels | [IN] Number of labels in the array |
| label_array | [IN] Array of MPLS label and header information |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_attach | ( | int | unit, |
| opennsl_if_t | intf_id, | ||
| uint32 | stat_counter_id | ||
| ) |
Attach statistics entity to the MPLS tunnel derived from the given L3 Egress interface.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object |
| stat_counter_id | [IN] Stat Counter ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_counter_get | ( | int | unit, |
| opennsl_if_t | intf_id, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Get counter value for the specified MPLS statistic type and Tunnel interface derived from the given L3 interface ID.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object. |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_counter_set | ( | int | unit, |
| opennsl_if_t | intf_id, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Set the counter value for the specified MPLS statistic type and Tunnel interface derived derived from the given L3 Interface ID.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object. |
| stat | [IN] Type of the counter to set that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [IN] Pointer to counter values |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_counter_sync_get | ( | int | unit, |
| opennsl_if_t | intf_id, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 | num_entries, | ||
| uint32 * | counter_indexes, | ||
| opennsl_stat_value_t * | counter_values | ||
| ) |
Force an immediate counter update and retrieve the specified counter statistic for a MPLS tunnel.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object. |
| stat | [IN] Type of the counter to retrieve that is, ingress/egress byte/packet |
| num_entries | [IN] Number of counter Entries |
| counter_indexes | [IN] Pointer to Counter indexes entries |
| counter_values | [OUT] Pointer to counter values |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_detach | ( | int | unit, |
| opennsl_if_t | intf_id | ||
| ) |
Detach statistics entity to the MPLS tunnel derived from the given L3 Egress interface.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object. |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_stat_id_get | ( | int | unit, |
| opennsl_if_t | intf_id, | ||
| opennsl_mpls_stat_t | stat, | ||
| uint32 * | stat_counter_id | ||
| ) |
Get stat counter ID associated with the MPLS tunnel derived from the given L3 interface ID.
| unit | [IN] Unit number. |
| intf_id | [IN] Interface ID of a egress L3 object. |
| stat | [IN] Type of the counter |
| stat_counter_id | [OUT] stat counter ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_switch_add | ( | int | unit, |
| opennsl_mpls_tunnel_switch_t * | info | ||
| ) |
Add an MPLS label entry.
| unit | [IN] Unit number. |
| info | [IN] Label (switch) information |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_switch_create | ( | int | unit, |
| opennsl_mpls_tunnel_switch_t * | info | ||
| ) |
Add an MPLS label entry.
| unit | [IN] Unit number. |
| info | [IN,OUT] Label (switch) information |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_switch_delete | ( | int | unit, |
| opennsl_mpls_tunnel_switch_t * | info | ||
| ) |
Delete an MPLS label entry.
| unit | [IN] Unit number. |
| info | [IN] Label (switch) information |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_switch_delete_all | ( | int | unit | ) |
Delete all MPLS label entries.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_mpls_tunnel_switch_get | ( | int | unit, |
| opennsl_mpls_tunnel_switch_t * | info | ||
| ) |
Get an MPLS label entry.
| unit | [IN] Unit number. |
| info | [IN,OUT] Label (switch) information |
| OPENNSL_E_XXX |
| void opennsl_mpls_tunnel_switch_t_init | ( | opennsl_mpls_tunnel_switch_t * | info | ) |
Initialize the MPLS tunnel switch structure.
| info | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_tunnel_switch_traverse | ( | int | unit, |
| opennsl_mpls_tunnel_switch_traverse_cb | cb, | ||
| void * | user_data | ||
| ) |
Traverse all valid MPLS label entries and call the supplied callback routine.
| unit | [IN] Unit number. |
| cb | [IN] User callback function, called once per MPLS entry |
| user_data | [IN] Cookie |
| OPENNSL_E_XXX |
| void opennsl_mpls_vpn_config_t_init | ( | opennsl_mpls_vpn_config_t * | info | ) |
Initialize the MPLS VPN config structure.
| info | [IN,OUT] Pointer to the struct to be initialized |
| None. |
| int opennsl_mpls_vpn_id_create | ( | int | unit, |
| opennsl_mpls_vpn_config_t * | info | ||
| ) |
Create an MPLS VPN.
| unit | [IN] Unit number. |
| info | [IN,OUT] VPN info |
| OPENNSL_E_XXX |
| int opennsl_mpls_vpn_id_destroy | ( | int | unit, |
| opennsl_vpn_t | vpn | ||
| ) |
Destroy an MPLS VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| OPENNSL_E_XXX |
| int opennsl_mpls_vpn_id_destroy_all | ( | int | unit | ) |
Destroy an MPLS VPN.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_mpls_vpn_id_get | ( | int | unit, |
| opennsl_vpn_t | vpn, | ||
| opennsl_mpls_vpn_config_t * | info | ||
| ) |
Get an MPLS VPN.
| unit | [IN] Unit number. |
| vpn | [IN] VPN ID |
| info | [OUT] VPN info |
| OPENNSL_E_XXX |
| int opennsl_mpls_vpn_traverse | ( | int | unit, |
| opennsl_mpls_vpn_traverse_cb | cb, | ||
| void * | user_data | ||
| ) |
Traverse all valid MPLS VPN entries and call the supplied callback routine.
| unit | [IN] Unit number. |
| cb | [IN] User callback function, called once per MPLS VPN entry |
| user_data | [IN] Cookie |
| OPENNSL_E_XXX |