Skip to content
claudiughioc edited this page Mar 12, 2013 · 3 revisions

Initial version ideas

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:

  1. Adapt the switch module, the CLI and the communication with daemons (rstp, cdp) so that they use the Switch API.

  2. Describe/declare a "context" to hold all the backend data.