The networking_cisco.apps.saf.server.dfa_events_handler
Module¶
-
class
networking_cisco.apps.saf.server.dfa_events_handler.
EventsHandler
(ser_name, pqueue, c_pri, d_pri)¶ Bases:
object
This class defines methods to listen and process events.
-
callback
(timestamp, event_type, payload)¶ Callback method for processing events in notification queue.
Parameters: - timestamp – time the message is received.
- event_type – event type in the notification queue such as identity.project.created, identity.project.deleted.
- payload – Contains information of an event
-
create_rpc_client
(thishost)¶
-
event_handler
()¶ Wait on queue for listening to the events.
-
nclient
¶
-
send_msg_to_agent
(thishost, msg_type, msg)¶
-
send_vm_info
(thishost, msg)¶
-
start
()¶
-
update_ip_rule
(thishost, msg)¶
-
wait
()¶
-