Revert "[202211][swss.sh] optimize macsec feature state query (#12946) (#13509)"

This reverts commit e33b92fcaf.
This commit is contained in:
StormLiangMS 2023-02-04 22:41:35 +08:00 committed by GitHub
parent a754c753bb
commit f0764d65bb

View File

@ -304,7 +304,7 @@ function check_peer_gbsyncd()
function check_macsec()
{
MACSEC_STATE=`$SONIC_DB_CLI CONFIG_DB hget 'FEATURE|macsec' state`
MACSEC_STATE=`show feature status | grep macsec | awk '{print $2}'`
if [[ ${MACSEC_STATE} == 'enabled' ]]; then
if [ "$DEV" ]; then