Exemplo n.º 1
0
/*
 * @function: - switch_api_router_mac_group_delete
 * Destroy a RMAC Group
 * @param - RMAC id that has to be deleted
 * @return - Returns rmac group id if success
 */
switch_status_t
switch_api_router_mac_group_delete(switch_device_t device, switch_handle_t rmac_handle)
{
    switch_rmac_info_t                *rmac_info = NULL;

    if (!SWITCH_RMAC_HANDLE_VALID(rmac_handle)) {
        return SWITCH_STATUS_INVALID_HANDLE;
    }

    rmac_info = switch_api_rmac_info_get_internal(rmac_handle);
    if (!rmac_info) {
        return SWITCH_STATUS_INVALID_HANDLE;
    }

    //TODO: cleanup all the router macs
    _switch_handle_delete(switch_rmac_info_t, switch_rmac_array, rmac_handle);
    return SWITCH_STATUS_SUCCESS;
}
Exemplo n.º 2
0
void
switch_stg_handle_delete(switch_handle_t stg_handle)
{
    _switch_handle_delete(switch_stp_info_t, switch_stp_instance_array, stg_handle);
}
Exemplo n.º 3
0
void switch_neighbor_info_delete(switch_handle_t handle) {
  _switch_handle_delete(switch_neighbor_info_t, switch_neighbor_array, handle);
}
Exemplo n.º 4
0
switch_status_t
switch_nhop_delete(switch_handle_t handle)
{
    _switch_handle_delete(switch_nhop_info_t, switch_nhop_array, handle);
    return SWITCH_STATUS_SUCCESS;
}
Exemplo n.º 5
0
void switch_sflow_ace_handle_delete(switch_handle_t sflow_ace_handle) {
  _switch_handle_delete(
      switch_sflow_match_entry_t, switch_sflow_ace_array, sflow_ace_handle);
}
Exemplo n.º 6
0
void switch_sflow_handle_delete(switch_handle_t sflow_handle) {
  _switch_handle_delete(switch_sflow_info_t, switch_sflow_array, sflow_handle);
}