Skip to content

Commit

Permalink
[macsecmgr]: Add rekey period in macsec mgr (sonic-net#1958)
Browse files Browse the repository at this point in the history
* Add rekey period in macsec mgr

Signed-off-by: Ze Gan <[email protected]>

* rename mka rekey period

Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur authored Oct 26, 2021
1 parent d95823d commit 7444e96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cfgmgr/macsecmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,16 @@ bool MACsecMgr::configureMACsec(
"mka_priority",
profile.priority);

if (profile.rekey_period)
{
wpa_cli_exec_and_check(
session.sock,
port_name,
network_id,
"mka_rekey_period",
profile.rekey_period);
}

wpa_cli_exec_and_check(
session.sock,
port_name,
Expand Down

0 comments on commit 7444e96

Please sign in to comment.