Skip to content

[swss] Only run tunnel packet handler on dualtor devices#11627

Merged
theasianpianist merged 1 commit intosonic-net:masterfrom
theasianpianist:tunnel-pkt-run
Aug 9, 2022
Merged

[swss] Only run tunnel packet handler on dualtor devices#11627
theasianpianist merged 1 commit intosonic-net:masterfrom
theasianpianist:tunnel-pkt-run

Conversation

@theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Aug 4, 2022

Signed-off-by: Lawrence Lee [email protected]

Master branch duplicate of #11626

Why I did it

Tunnel packet handler running on non dualtor devices generates error logs

How I did it

At SWSS docker init time, check the device subtype and enable tunnel packet handler only if it is dualtor

How to verify it

  • Apply changes to dualtor device, verify that tunnel packet handler is running after restarting swss
  • Apply changes to non dualtor device, verify that tunnel packet handler is not running and does not show in supervisorctl status after restarting swss (verified on both T0 and T1 devices)
  • The SWSS docker built from this PR has been validated on both dualtor and non-dualtor devices

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@theasianpianist theasianpianist requested a review from prsunny August 4, 2022 22:07
@theasianpianist theasianpianist changed the title [swss]: Run tunnel_pkt_handler on dualtor only [swss] Only run tunnel packet handler on dualtor devices Aug 4, 2022
@theasianpianist theasianpianist merged commit 4a996f3 into sonic-net:master Aug 9, 2022
yxieca pushed a commit that referenced this pull request Aug 11, 2022
At SWSS docker init time, check the device subtype and enable tunnel packet handler only if it is dualtor

Signed-off-by: Lawrence Lee <[email protected]>
skbarista pushed a commit to skbarista/sonic-buildimage that referenced this pull request Aug 17, 2022
At SWSS docker init time, check the device subtype and enable tunnel packet handler only if it is dualtor

Signed-off-by: Lawrence Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants