7bd0a2ad11
- Create a script in the orchagent docker container which listens for these encapsulated packets which are trapped to CPU (indicating that they cannot be routed/no neighbor info exists for the inner packet). When such a packet is received, the script will issue a ping command to the packet's inner destination IP to start the neighbor learning process. - This script is also resilient to portchannel status changes (i.e. interface going up or down). An interface going down does not affect traffic sniffing on interfaces which are still up. When an interface comes back up, we restart the sniffer to start capturing traffic on that interface again.
257 lines
5.4 KiB
Django/Jinja
257 lines
5.4 KiB
Django/Jinja
[supervisord]
|
|
logfile_maxbytes=1MB
|
|
logfile_backups=2
|
|
nodaemon=true
|
|
|
|
[eventlistener:dependent-startup]
|
|
command=python3 -m supervisord_dependent_startup
|
|
autostart=true
|
|
autorestart=unexpected
|
|
startretries=0
|
|
exitcodes=0,3
|
|
events=PROCESS_STATE
|
|
buffer_size=1024
|
|
|
|
[eventlistener:supervisor-proc-exit-listener]
|
|
command=/usr/bin/supervisor-proc-exit-listener --container-name swss
|
|
events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
|
|
autostart=true
|
|
autorestart=unexpected
|
|
buffer_size=1024
|
|
|
|
[program:rsyslogd]
|
|
command=/usr/sbin/rsyslogd -n -iNONE
|
|
priority=1
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
|
|
{% set is_fabric_asic = 0 %}
|
|
{% set orchagent_dependent_startup_wait_for = "portsyncd:running" %}
|
|
{% if DEVICE_METADATA.localhost.switch_type %}
|
|
{% if DEVICE_METADATA.localhost.switch_type == "fabric" %}
|
|
{% set is_fabric_asic = 1 %}
|
|
{% set orchagent_dependent_startup_wait_for = "rsyslogd:running" %}
|
|
{%- endif %}
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:gearsyncd]
|
|
command=/usr/bin/gearsyncd -p /usr/share/sonic/hwsku/gearbox_config.json
|
|
priority=3
|
|
autostart=false
|
|
autorestart=false
|
|
startsecs=0
|
|
startretries=0
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:portsyncd]
|
|
command=/usr/bin/portsyncd
|
|
priority=3
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{%- endif %}
|
|
|
|
[program:orchagent]
|
|
command=/usr/bin/orchagent.sh
|
|
priority=4
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for={{ orchagent_dependent_startup_wait_for }}
|
|
|
|
[program:swssconfig]
|
|
command=/usr/bin/swssconfig.sh
|
|
priority=5
|
|
autostart=false
|
|
autorestart=unexpected
|
|
startretries=0
|
|
startsecs=0
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=orchagent:running
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:restore_neighbors]
|
|
command=/usr/bin/restore_neighbors.py
|
|
priority=6
|
|
autostart=false
|
|
autorestart=false
|
|
startsecs=0
|
|
startretries=0
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:coppmgrd]
|
|
command=/usr/bin/coppmgrd
|
|
priority=6
|
|
autostart=false
|
|
autorestart=false
|
|
startretries=0
|
|
startsecs=0
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=orchagent:running
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:neighsyncd]
|
|
command=/usr/bin/neighsyncd
|
|
priority=7
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:vlanmgrd]
|
|
command=/usr/bin/vlanmgrd
|
|
priority=8
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:intfmgrd]
|
|
command=/usr/bin/intfmgrd
|
|
priority=9
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:portmgrd]
|
|
command=/usr/bin/portmgrd
|
|
priority=10
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:buffermgrd]
|
|
command=/usr/bin/buffermgrd.sh
|
|
priority=11
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:vrfmgrd]
|
|
command=/usr/bin/vrfmgrd
|
|
priority=13
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:nbrmgrd]
|
|
command=/usr/bin/nbrmgrd
|
|
priority=15
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:vxlanmgrd]
|
|
command=/usr/bin/vxlanmgrd
|
|
priority=16
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:tunnelmgrd]
|
|
command=/usr/bin/tunnelmgrd
|
|
priority=17
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
[program:enable_counters]
|
|
command=/usr/bin/enable_counters.py
|
|
priority=12
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:fdbsyncd]
|
|
command=/usr/bin/fdbsyncd
|
|
priority=17
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|
|
|
|
{% if is_fabric_asic == 0 %}
|
|
[program:tunnel_packet_handler]
|
|
command=/usr/bin/tunnel_packet_handler.py
|
|
priority=12
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=swssconfig:exited
|
|
{%- endif %}
|