Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ if [ ! -z "$HEARTBEAT_INTERVAL" ] && [ $HEARTBEAT_INTERVAL != "null" ]; then
ORCHAGENT_ARGS+=" -I $HEARTBEAT_INTERVAL"
fi

# Enable SAI MACSec POST when:
# - FIPS is enabled in SONiC (either in /proc/cmdline or /etc/fips/fips_enable); AND
# - MACSec is enabled on platform.
if grep -q "sonic_fips=1" /proc/cmdline || grep -q "1" /etc/fips/fips_enable ; then
if grep -q "macsec_enabled=1" /usr/share/sonic/platform/platform_env.conf 2>/dev/null ; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @judyjoseph update review to source platform_env.conf as suggested.

ORCHAGENT_ARGS+=" -M"
fi
fi

# Mask SIGHUP signal to avoid orchagent termination by logrotate before orchagent registers its handler.
trap '' SIGHUP

Expand Down
Loading