Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 2.01 KB

DEVEL.md

File metadata and controls

66 lines (46 loc) · 2.01 KB

Code Layout

Daemon

Daemon Start up

  • Daemon invokes plugins base on config.
  • Daemon start API thread listening on public API UNIX socket.
  • Daemon start commander thread converting API event to/from plugin events.
  • Daemon start switch thread forwarding events between api thread, commander thread and plugins.

Daemon User API Thread

  • The API thread invoke thread all each NipartConnection
  • The NipartEvent received from user will changed the target to commander, and send to switch thread.
  • When switch send back event to API thread, search on which NipartConnection should used to send using a tracking queue shared between sub-threads of API thread.

Daemon Switch Thread

  • Forward the NipartEvent base on its source and designation.
  • The switch holds multiple tokio mpsc channels to daemon API thread and commander thread.
  • The switch holds NipartConnection to plugin socket.

Nispor Plugin -- Kernel Query and Config

Baize Plugin -- Monitor

The Bai Ze is a mythical beast in ancient China. It can speak, understand the feelings of all things. (白泽神兽,能言,达于万物之情)

The monitor plugin should send NipartEvent to commander when event of NipartMonitorRule happens.

Mozim Plugin -- DHCP

OVS Plugin

LLDP Plugin

Librarian Plugin -- Conf

Librarian to keep the configurations.