Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MACsecMgr]: Add MACsec Manager (#1475)
Add MACsec Manager for MACsec feature. MACsecMgr is a daemon in MACsec container, that receives the message from CONFIG DB and uses wpa_cli instructions to manage the functionality of MACsec in the specified port. The below figure is the flow chart of MACsecMgr which shows the MACsec profile management according to MACsec Profile Table and the functionality of MACsec in the specified port according to PortTable. The main functions are defined in class MACsecMgr as follow ``` task_process_status removeProfile(const std::string & profile_name, const TaskArgs & profile_attr); task_process_status loadProfile(const std::string & profile_name, const TaskArgs & profile_attr); task_process_status enableMACsec(const std::string & port_name, const TaskArgs & port_attr); task_process_status disableMACsec(const std::string & port_name, const TaskArgs & port_attr); ``` The HLD of MACsec Manager is at [MACsec HLD](https://github.com/Azure/SONiC/blob/master/doc/macsec/MACsec_hld.md#341-macsec-mgr) Signed-off-by: Ze Gan <ganze718@gmail.com>
- Loading branch information