Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable_xcvrd_sff_mgr flag support for xcvrd startup command #18054

Merged
merged 1 commit into from
Mar 12, 2024
Merged
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
20 changes: 15 additions & 5 deletions dockers/docker-platform-monitor/docker-pmon.supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,23 @@ dependent_startup_wait_for=rsyslogd:running

{% if not skip_xcvrd %}
[program:xcvrd]
{% if delay_xcvrd %}
command={% if skip_xcvrd_cmis_mgr %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd --skip_cmis_mgr" {% else %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd" {% endif %}
{% set base_command = "python3 /usr/local/bin/xcvrd" %}
{% set options = "" -%}

{% else %}
command={% if skip_xcvrd_cmis_mgr %} python3 /usr/local/bin/xcvrd --skip_cmis_mgr {% else %} python3 /usr/local/bin/xcvrd {% endif %}
{% if skip_xcvrd_cmis_mgr %}
{%- set options = options + " --skip_cmis_mgr" %}
{% endif -%}

{% endif %}
{% if enable_xcvrd_sff_mgr %}
{%- set options = options + " --enable_sff_mgr" %}
{% endif -%}

{% if delay_xcvrd %}
{%- set command = "bash -c \"sleep 30 && " ~ base_command ~ options ~ "\"" %}
{% else %}
{%- set command = base_command ~ options %}
{% endif -%}
command={{ command }}
priority=6
autostart=false
autorestart=unexpected
Expand Down
Loading