OpenNSL API Guide and Reference Manual
|
Data Structures | |
struct | opennsl_vswitch_cross_connect_s |
L3 tunneling initiator. More... | |
Files | |
file | vswitch.h |
file | vswitchX.h |
Typedefs | |
typedef struct opennsl_vswitch_cross_connect_s | opennsl_vswitch_cross_connect_t |
L3 tunneling initiator. | |
typedef int(* | opennsl_vswitch_port_traverse_cb )(int unit, opennsl_vlan_t vsi, opennsl_gport_t port, void *user_data) |
Functions | |
int | opennsl_vswitch_create (int unit, opennsl_vlan_t *vsi) LIB_DLL_EXPORTED |
Create a Virtual Switching Instance. | |
int | opennsl_vswitch_create_with_id (int unit, opennsl_vlan_t vsi) LIB_DLL_EXPORTED |
Create a Virtual Switching Instance, with a specified ID. | |
int | opennsl_vswitch_cross_connect_add (int unit, opennsl_vswitch_cross_connect_t *gports) LIB_DLL_EXPORTED |
Attach two given logical ports in a point-to-point service. | |
int | opennsl_vswitch_cross_connect_delete (int unit, opennsl_vswitch_cross_connect_t *gports) LIB_DLL_EXPORTED |
Remove attachment between the given logical ports. | |
int | opennsl_vswitch_cross_connect_delete_all (int unit) LIB_DLL_EXPORTED |
Delete all point-to-point services. | |
int | opennsl_vswitch_cross_connect_get (int unit, opennsl_vswitch_cross_connect_t *gports) LIB_DLL_EXPORTED |
Return peer, if protected return primary port, invalid gport is populated. | |
void | opennsl_vswitch_cross_connect_t_init (opennsl_vswitch_cross_connect_t *cross_connect) LIB_DLL_EXPORTED |
int | opennsl_vswitch_destroy (int unit, opennsl_vlan_t vsi) LIB_DLL_EXPORTED |
Destroy a Virtual Switching Instance. | |
int | opennsl_vswitch_detach (int unit) LIB_DLL_EXPORTED |
Detach vswitch module. | |
int | opennsl_vswitch_init (int unit) LIB_DLL_EXPORTED |
Initialize vswitch module. | |
int | opennsl_vswitch_port_add (int unit, opennsl_vlan_t vsi, opennsl_gport_t port) LIB_DLL_EXPORTED |
Add a logical port to the specified virtual switching instance. | |
int | opennsl_vswitch_port_delete (int unit, opennsl_vlan_t vsi, opennsl_gport_t port) LIB_DLL_EXPORTED |
Remove a logical port from the specified virtual switching instance. | |
int | opennsl_vswitch_port_delete_all (int unit, opennsl_vlan_t vsi) LIB_DLL_EXPORTED |
Remove all logical port members from the specified virtual switching instance. | |
int | opennsl_vswitch_port_get (int unit, opennsl_gport_t port, opennsl_vlan_t *vsi) LIB_DLL_EXPORTED |
Get the virtual switching instance of which the specified logical port is a member. | |
int | opennsl_vswitch_port_traverse (int unit, opennsl_vlan_t vsi, opennsl_vswitch_port_traverse_cb cb, void *user_data) LIB_DLL_EXPORTED |
Traverse existing ports on vswitch. | |
typedef struct opennsl_vswitch_cross_connect_s opennsl_vswitch_cross_connect_t |
L3 tunneling initiator.
typedef int(* opennsl_vswitch_port_traverse_cb)(int unit, opennsl_vlan_t vsi, opennsl_gport_t port, void *user_data) |
Definition at line 92 of file vswitchX.h.
int opennsl_vswitch_create | ( | int | unit, |
opennsl_vlan_t * | vsi | ||
) |
Create a Virtual Switching Instance.
unit | [IN] Unit number. |
vsi | [OUT] Virtual Switching Instance |
OPENNSL_E_XXX |
int opennsl_vswitch_create_with_id | ( | int | unit, |
opennsl_vlan_t | vsi | ||
) |
Create a Virtual Switching Instance, with a specified ID.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
OPENNSL_E_XXX |
Referenced by example_open_vlan_per_mc().
int opennsl_vswitch_cross_connect_add | ( | int | unit, |
opennsl_vswitch_cross_connect_t * | gports | ||
) |
Attach two given logical ports in a point-to-point service.
unit | [IN] Unit number. |
gports | [IN] Logical ports |
OPENNSL_E_XXX |
Referenced by initial_qos_service().
int opennsl_vswitch_cross_connect_delete | ( | int | unit, |
opennsl_vswitch_cross_connect_t * | gports | ||
) |
Remove attachment between the given logical ports.
unit | [IN] Unit number. |
gports | [IN] Logical ports |
OPENNSL_E_XXX |
Referenced by initial_qos_service_cleanup().
int opennsl_vswitch_cross_connect_delete_all | ( | int | unit | ) |
Delete all point-to-point services.
unit | [IN] Unit number. |
OPENNSL_E_XXX |
int opennsl_vswitch_cross_connect_get | ( | int | unit, |
opennsl_vswitch_cross_connect_t * | gports | ||
) |
Return peer, if protected return primary port, invalid gport is populated.
unit | [IN] Unit number. |
gports | [IN,OUT] Logical ports |
OPENNSL_E_XXX |
void opennsl_vswitch_cross_connect_t_init | ( | opennsl_vswitch_cross_connect_t * | cross_connect | ) |
int opennsl_vswitch_destroy | ( | int | unit, |
opennsl_vlan_t | vsi | ||
) |
Destroy a Virtual Switching Instance.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
OPENNSL_E_XXX |
int opennsl_vswitch_detach | ( | int | unit | ) |
Detach vswitch module.
unit | [IN] Unit number. |
OPENNSL_E_XXX |
int opennsl_vswitch_init | ( | int | unit | ) |
Initialize vswitch module.
unit | [IN] Unit number. |
OPENNSL_E_XXX |
int opennsl_vswitch_port_add | ( | int | unit, |
opennsl_vlan_t | vsi, | ||
opennsl_gport_t | port | ||
) |
Add a logical port to the specified virtual switching instance.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
port | [IN] Port number |
OPENNSL_E_XXX |
Referenced by example_add_inLif_to_vswitch().
int opennsl_vswitch_port_delete | ( | int | unit, |
opennsl_vlan_t | vsi, | ||
opennsl_gport_t | port | ||
) |
Remove a logical port from the specified virtual switching instance.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
port | [IN] Port number |
OPENNSL_E_XXX |
Referenced by remove_inLif_from_vswitch().
int opennsl_vswitch_port_delete_all | ( | int | unit, |
opennsl_vlan_t | vsi | ||
) |
Remove all logical port members from the specified virtual switching instance.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
OPENNSL_E_XXX |
int opennsl_vswitch_port_get | ( | int | unit, |
opennsl_gport_t | port, | ||
opennsl_vlan_t * | vsi | ||
) |
Get the virtual switching instance of which the specified logical port is a member.
unit | [IN] Unit number. |
port | [IN] Port number |
vsi | [OUT] Virtual Switching Instance |
OPENNSL_E_XXX |
int opennsl_vswitch_port_traverse | ( | int | unit, |
opennsl_vlan_t | vsi, | ||
opennsl_vswitch_port_traverse_cb | cb, | ||
void * | user_data | ||
) |
Traverse existing ports on vswitch.
unit | [IN] Unit number. |
vsi | [IN] Virtual Switching Instance |
cb | [IN] Vswitch port traverse prototype |
user_data | [IN] Cookie value supplied by caller during registration of the callout |
OPENNSL_E_xxx |