Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
8-8
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 8      Creating Provisioning Solution
Creating Provisioning Solutions
Figure 8-3
Sequence Diagram for a Two-stage Commit
Device
98288
IE2100
Event Bus
Application
Initiate TCP connection
SendEventId (DeviceID)
CreateListener (config.load.EventID, Event Callback)
Subscribe (config.load)
Event Callback (config.load.EventID,
configuration XML with actions=READ)
CreateListener (Synch-StatusSubject.EventID,
Event Callback)
ReceiveEvent (config.load
 , configuration XML with action=READ)
Publish (Synch-StatusSubject.EventID,
Description XML)
Save configuration. Optional syntax
check. 
Publish (StatusSubject, Description XML)
Apply configuration. Optional write
to NVRAM
Process
Synch-Status
Event
Process
Status
Event
Publish (StatusSubject, Description)
ReceiveEvent (config.load.EventID,
commit command as payload)
Please refer to documentation for 
the exact list of configuration and 
status subjects
Publish (StatusSubject.EventID,
Description)
Publish (config.load.EventID,
commit command as payload)
Publish (config.load.EventID,
commit command as payload)
Event Callback (Synchro-StatusSubject.EventID,
Description XML)
Event Callback (StatusSubject.EventID,
Description )
CreateListener (StatusSubject.EventID,
Event Callback)
Publish (config.load.EventID,
configuration XML with action=READ)
Synchronize commits can also be 
done using the Pull Model
Event could
be push/pull