-
Notifications
You must be signed in to change notification settings - Fork 3
Switch API
claudiughioc edited this page Mar 12, 2013
·
3 revisions
To start from somewhere wanted to separate the CLI from the switch module implementation. Having this in mind we have extracted individual commands from LiSA CLI handlers and have built an interface exposing declarations of the functions that would be called by the CLI when retrieving information from LiSA module or from any other implementation for switching. This way, commands handlers "communicate" only with a switch API implementation and not with the switch module.
Also the API has to be as generic as possible. See cli/common/sw_api.h.
Next steps:
-
Adapt the switch module, the CLI and the communication with daemons (rstp, cdp) so that they use the Switch API.
-
Describe/declare a "context" to hold all the backend data.