OpenNSL API Guide and Reference Manual
|
Files | |
file | errorX.h |
Macros | |
#define | opennsl_errmsg(rv) _SHR_ERRMSG(rv) |
#define | OPENNSL_FAILURE(rv) _SHR_E_FAILURE(rv) |
#define | OPENNSL_IF_ERROR_NOT_UNAVAIL_RETURN(op) _SHR_E_IF_ERROR_NOT_UNAVAIL_RETURN(op) |
#define | OPENNSL_IF_ERROR_RETURN(op) _SHR_E_IF_ERROR_RETURN(op) |
#define | OPENNSL_SUCCESS(rv) _SHR_E_SUCCESS(rv) |
Typedefs | |
typedef enum opennsl_error_e | opennsl_error_t |
OPENNSL API error codes. | |
typedef enum opennsl_switch_event_e | opennsl_switch_event_t |
Switch event types. | |
Enumerations | |
enum | opennsl_error_e { OPENNSL_E_NONE = _SHR_E_NONE, OPENNSL_E_INTERNAL = _SHR_E_INTERNAL, OPENNSL_E_MEMORY = _SHR_E_MEMORY, OPENNSL_E_UNIT = _SHR_E_UNIT, OPENNSL_E_PARAM = _SHR_E_PARAM, OPENNSL_E_EMPTY = _SHR_E_EMPTY, OPENNSL_E_FULL = _SHR_E_FULL, OPENNSL_E_NOT_FOUND = _SHR_E_NOT_FOUND, OPENNSL_E_EXISTS = _SHR_E_EXISTS, OPENNSL_E_TIMEOUT = _SHR_E_TIMEOUT, OPENNSL_E_BUSY = _SHR_E_BUSY, OPENNSL_E_FAIL = _SHR_E_FAIL, OPENNSL_E_DISABLED = _SHR_E_DISABLED, OPENNSL_E_BADID = _SHR_E_BADID, OPENNSL_E_RESOURCE = _SHR_E_RESOURCE, OPENNSL_E_CONFIG = _SHR_E_CONFIG, OPENNSL_E_UNAVAIL = _SHR_E_UNAVAIL, OPENNSL_E_INIT = _SHR_E_INIT, OPENNSL_E_PORT = _SHR_E_PORT } |
OPENNSL API error codes. More... | |
enum | opennsl_switch_event_e { OPENNSL_SWITCH_EVENT_PARITY_ERROR = _SHR_SWITCH_EVENT_PARITY_ERROR, OPENNSL_SWITCH_EVENT_STABLE_FULL = _SHR_SWITCH_EVENT_STABLE_FULL, OPENNSL_SWITCH_EVENT_STABLE_ERROR = _SHR_SWITCH_EVENT_STABLE_ERROR, OPENNSL_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN = _SHR_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN, OPENNSL_SWITCH_EVENT_WARM_BOOT_DOWNGRADE = _SHR_SWITCH_EVENT_WARM_BOOT_DOWNGRADE, OPENNSL_SWITCH_EVENT_MMU_BST_TRIGGER = _SHR_SWITCH_EVENT_MMU_BST_TRIGGER } |
Switch event types. More... | |
#define opennsl_errmsg | ( | rv | ) | _SHR_ERRMSG(rv) |
Definition at line 77 of file error.h.
Referenced by example_add_host(), example_add_inLif_to_vswitch(), example_add_multicast_entry(), example_add_vlan_on_port(), example_create_l3_intf(), example_create_policy(), example_fp_redirect(), example_ip_tunnel_add(), example_ip_tunnel_term_create_l3_intf(), example_knet_intf_delete(), example_l2_addr_add(), example_l3_egress_create(), example_l3_intf_rif_create(), example_max_port_count_get(), example_multi_pkt_send(), example_multicast_group_open(), example_multicast_vxlan_port_add(), example_open_vlan_per_mc(), example_pkt_send(), example_port_default_config(), example_rx_setup(), example_set_default_route(), example_stg_create(), example_switch_default_vlan_config(), example_vlan_inLif_create(), example_vlan_port_add(), example_vxlan(), example_vxlan_egress_tunnel_create(), example_vxlan_egress_tunnel_fec_create(), example_vxlan_open_vpn(), example_vxlan_port_add(), example_vxlan_tunnel_terminator_create(), init_portmap(), initial_qos_service(), main(), and remove_inLif_from_vswitch().
#define OPENNSL_FAILURE | ( | rv | ) | _SHR_E_FAILURE(rv) |
Definition at line 71 of file error.h.
Referenced by example_create_meter(), example_port_default_config(), example_rx_setup(), example_switch_default_vlan_config(), and main().
#define OPENNSL_IF_ERROR_NOT_UNAVAIL_RETURN | ( | op | ) | _SHR_E_IF_ERROR_NOT_UNAVAIL_RETURN(op) |
#define OPENNSL_IF_ERROR_RETURN | ( | op | ) | _SHR_E_IF_ERROR_RETURN(op) |
Definition at line 73 of file error.h.
Referenced by example_check_rates(), example_create_policer(), example_fp_ip_block(), example_policer_test(), example_trunk_hash_controls_set(), and vlan_create_add_port().
#define OPENNSL_SUCCESS | ( | rv | ) | _SHR_E_SUCCESS(rv) |
Definition at line 69 of file error.h.
Referenced by example_multi_pkt_send(), and example_pkt_send().
typedef enum opennsl_error_e opennsl_error_t |
OPENNSL API error codes.
Note: An error code may be converted to a string by passing the code to opennsl_errmsg().
typedef enum opennsl_switch_event_e opennsl_switch_event_t |
Switch event types.
enum opennsl_error_e |
OPENNSL API error codes.
Note: An error code may be converted to a string by passing the code to opennsl_errmsg().