| 
    OpenNSL API Guide and Reference Manual
    
   | 
 
Go to the source code of this file.
Typedefs | |
| typedef enum opennsl_stg_stp_e | opennsl_stg_stp_t | 
| opennsl_stg_stp_e   | |
Enumerations | |
| enum | opennsl_stg_stp_e {  OPENNSL_STG_STP_DISABLE = _SHR_PORT_STP_DISABLE, OPENNSL_STG_STP_BLOCK = _SHR_PORT_STP_BLOCK, OPENNSL_STG_STP_LISTEN = _SHR_PORT_STP_LISTEN, OPENNSL_STG_STP_LEARN = _SHR_PORT_STP_LEARN, OPENNSL_STG_STP_FORWARD = _SHR_PORT_STP_FORWARD, OPENNSL_STG_STP_COUNT = _SHR_PORT_STP_COUNT }  | 
| opennsl_stg_stp_e  More... | |
Functions | |
| int | opennsl_stg_clear (int unit) LIB_DLL_EXPORTED | 
| Destroy all STGs and initialize the Spanning Tree Group (STG) module to its initial configuration.   | |
| int | opennsl_stg_count_get (int unit, int *max_stg) LIB_DLL_EXPORTED | 
| Return the maximum number of STGs that the underlying hardware can support.   | |
| int | opennsl_stg_create (int unit, opennsl_stg_t *stg_ptr) LIB_DLL_EXPORTED | 
| Create a new STG, using a new STG ID.   | |
| int | opennsl_stg_default_get (int unit, opennsl_stg_t *stg_ptr) LIB_DLL_EXPORTED | 
| Return the current default STG ID for the chip.   | |
| int | opennsl_stg_default_set (int unit, opennsl_stg_t stg) LIB_DLL_EXPORTED | 
| Designate the default STG ID for the chip.   | |
| int | opennsl_stg_destroy (int unit, opennsl_stg_t stg) LIB_DLL_EXPORTED | 
| Destroys the specified STG.   | |
| int | opennsl_stg_init (int unit) LIB_DLL_EXPORTED | 
| Initialize the Spanning Tree Group (STG) module to its initial configuration.   | |
| int | opennsl_stg_list (int unit, opennsl_stg_t **list, int *count) LIB_DLL_EXPORTED | 
| Generates a list of IDs for currently defined STGs.   | |
| int | opennsl_stg_list_destroy (int unit, opennsl_stg_t *list, int count) LIB_DLL_EXPORTED | 
| Destroys a previously returned list of STG IDs; the STGs themselves are not affected.   | |
| int | opennsl_stg_stp_get (int unit, opennsl_stg_t stg, opennsl_port_t port, int *stp_state) LIB_DLL_EXPORTED | 
| Return the Spanning Tree Protocol state of a port in the specified STG.   | |
| int | opennsl_stg_stp_set (int unit, opennsl_stg_t stg, opennsl_port_t port, int stp_state) LIB_DLL_EXPORTED | 
| Set the Spanning Tree Protocol state of a port/VP in the specified STG.   | |
| int | opennsl_stg_vlan_add (int unit, opennsl_stg_t stg, opennsl_vlan_t vid) LIB_DLL_EXPORTED | 
| Add a VLAN to a specified STG.   | |
| int | opennsl_stg_vlan_list (int unit, opennsl_stg_t stg, opennsl_vlan_t **list, int *count) LIB_DLL_EXPORTED | 
| Generates a list of VLANs in a specified STG.   | |
| int | opennsl_stg_vlan_list_destroy (int unit, opennsl_vlan_t *list, int count) LIB_DLL_EXPORTED | 
| Destroy a list returned by =opennsl_stg_vlan_list .   | |
| int | opennsl_stg_vlan_remove (int unit, opennsl_stg_t stg, opennsl_vlan_t vid) LIB_DLL_EXPORTED | 
| Remove a VLAN from a Spanning Tree Group.   | |
| int | opennsl_stg_vlan_remove_all (int unit, opennsl_stg_t stg) LIB_DLL_EXPORTED | 
| Remove all VLANs from a Spanning Tree Group.   | |