Skip to content
Open
Changes from all commits
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
ORCHAGENT_ARGS+=" -M"
fi
fi

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

Expand Down
Loading