Skip to content

Commit 7444e96

Browse files
authored
[macsecmgr]: Add rekey period in macsec mgr (sonic-net#1958)
* Add rekey period in macsec mgr Signed-off-by: Ze Gan <[email protected]> * rename mka rekey period Signed-off-by: Ze Gan <[email protected]>
1 parent d95823d commit 7444e96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cfgmgr/macsecmgr.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,16 @@ bool MACsecMgr::configureMACsec(
712712
"mka_priority",
713713
profile.priority);
714714

715+
if (profile.rekey_period)
716+
{
717+
wpa_cli_exec_and_check(
718+
session.sock,
719+
port_name,
720+
network_id,
721+
"mka_rekey_period",
722+
profile.rekey_period);
723+
}
724+
715725
wpa_cli_exec_and_check(
716726
session.sock,
717727
port_name,

0 commit comments

Comments
 (0)