Skip to content

Workflow

simen edited this page May 5, 2017 · 9 revisions

This document introduces the workflow of how to design your own netcore for freebird framework to manage your machine network.


The workflow of designing your own netcore


Step 1 > Create a netcore from freebird-base



Step 2 > Use netcore commit APIs to pass messages from low-layer to freebird.



Step 3 > Implement the template method nc._cookRawDev



Step 4 > Implement the template method nc._cookRawGad



Step 5 > Implement the network management drivers and register them with nc.registerNetDrivers().

  • Mandatory drivers: start, stop, reset, permitJoin, remove, and ping
  • Optional drivers: ban, unban
  • If any of the mandatory drivers is missing, freebird will throw you an error at starting.
  • Example


Step 6 > Implement the device operation drivers and register them with nc.registerDevDrivers().

  • Mandatory drivers: read and write
  • Optional drivers: identify
  • If any of the mandatory drivers is missing, freebird will throw you an error at starting.
  • Example


Step 7 > Implement the gadget operation drivers and register them with nc.registerGadDrivers().

  • Mandatory drivers: read, write, and exec
  • Optional drivers: readReportCfg and writeReportCfg
  • Example


When the developer meets the above requirements. Netcore will be able to work in the freebird framework.