OpenNSL API Guide and Reference Manual
Data Structures | Typedefs | Functions
vswitchX.h File Reference
#include <opennsl/types.h>
#include <opennsl/policer.h>
#include <opennsl/port.h>

Go to the source code of this file.

Data Structures

struct  opennsl_vswitch_cross_connect_s
 L3 tunneling initiator. More...
 

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.