Endpoint and Network Event APIs
The following APIs are called when an endpoint or a network configuration changes for endpoint groups (EPGs) that are associated with the graph:
def attachEndpoint( device, configuration, endpoints )
def detachEndpoint( device, configuration, endpoints )
def attachNetwork( device, configuration, networks)
def detachNetwork( device, configuration, networks )
These APIs are called only if the device specification supports an endpoint or network attach notification and you have enabled a notification on the function connector. The AttachEndpoint and DetachEndpoint events are called when an endpoint within an EPG attaches or detaches. The network APIs are called when you modify the subnet configuration under the bridge domain or EPG. These APIs provide information to enable the automation of any service function configuration that should be modified on an endpoint or network configuration change. An example would be if you dynamically add and remove a server from a pool that is attached to a load balancer or dynamically update a subnet within an access list defined for a firewall. The device specification file can define an empty function that returns success in the return format that is required by the APIC. It is not mandatory to support endpoint or network event handling functionality.