ROFL-hal  v0.6.0dev
Modules | Functions
Control and Management Module(CMM) notifications interface

The HAL cmm interface is the interface that the driver can consume to produce notifications to the CMM. More...

Modules

 Control and Management Module(CMM) OpenFlow notifications interface
 The HAL of1x cmm interface is the interface that the driver can consume to produce OpenFlow related notifications to the CMM.
 

Functions

HAL_BEGIN_DECLS hal_result_t hal_cmm_notify_port_add (switch_port_snapshot_t *port_snapshot)
 Notify the CMM that a port has been added to the system. More...
 
hal_result_t hal_cmm_notify_port_delete (switch_port_snapshot_t *port_snapshot)
 Notifies the CMM that port has been deleted from the platform. More...
 
hal_result_t hal_cmm_notify_port_status_changed (switch_port_snapshot_t *port_snapshot)
 Notify the CMM of a port status change. More...
 
hal_result_t hal_cmm_notify_monitoring_state_changed (monitoring_snapshot_state_t *monitoring_snapshot)
 Notify a monitoring state change to CMM. More...
 

Detailed Description

The HAL cmm interface is the interface that the driver can consume to produce notifications to the CMM.

Function Documentation

hal_result_t hal_cmm_notify_monitoring_state_changed ( monitoring_snapshot_state_t *  monitoring_snapshot)

Notify a monitoring state change to CMM.

Parameters
monitoring_snapshotSnapshot of the current monitoring state. The snapshot MUST be deleted using monitoring_destroy_snapshot()
HAL_BEGIN_DECLS hal_result_t hal_cmm_notify_port_add ( switch_port_snapshot_t *  port_snapshot)

Notify the CMM that a port has been added to the system.

This function shall NOT be called when an exisiting port attachment status changes. When a new port is automatically attached to an LSI, then the port_add message implicitely means an attachment to an LSI.

Parameters
port_snapshotSnapshot of the current state of a switch port. The snapshot MUST be deleted using switch_port_destroy_snapshot()
hal_result_t hal_cmm_notify_port_delete ( switch_port_snapshot_t *  port_snapshot)

Notifies the CMM that port has been deleted from the platform.

This function shall NOT be called when a port attachment status changes. When a port deletion happens on an attached port, then the port deletion of an attached port implicitly means a detachment of the port from the LSI.

Parameters
port_snapshotSnapshot of the current state of a switch port. The snapshot MUST be deleted using switch_port_destroy_snapshot()
hal_result_t hal_cmm_notify_port_status_changed ( switch_port_snapshot_t *  port_snapshot)

Notify the CMM of a port status change.

This function shall NOT be called when a port attachment status changes.

Parameters
port_snapshotSnapshot of the current state of a switch port. The snapshot MUST be deleted using switch_port_destroy_snapshot()