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

[dualtor] Disable zebra link-detect for vlan interfaces #17784

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

lolyu
Copy link
Contributor

@lolyu lolyu commented Jan 15, 2024

Why I did it

If all vlan member ports are admin down, the vlan route is removed by FRR, so the packets to the vlan subnet will be forwarded with the default route, two issues:

  1. route inconsistency between kernel and ASIC.
    the vlan route in kernel still has nexthop as the vlan device, the vlan route in ASIC has nexthop as the default route.
  2. no tunnel will be created.
    As those traffic will be bounced back to T1s by the ASIC, they will not be able to be trapped to kernel to trigger the zero-mac tunnel route creation.

For dualtor, the downstream standby traffic should be tunneled to the active side.
To ensure the zero-mac tunnel route works as expected, the vlan route should always present in both the kernel and ASIC.
So let's disable the link-detect for vlan interfaces.

Fixes: #16085

Signed-off-by: Longxiang Lyu [email protected]

Work item tracking
  • Microsoft ADO (number only): 26325737

How I did it

Disable the link-detect flag in the frr zebra template.

How to verify it

UT and nightly run.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

lolyu added 3 commits January 15, 2024 12:59
Signed-off-by: Longxiang Lyu <[email protected]>
Signed-off-by: Longxiang Lyu <[email protected]>
Copy link
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

lgtm. @lguohan , @theasianpianist for viz

@prsunny
Copy link
Contributor

prsunny commented Jan 18, 2024

@lolyu , do we want to backport to 202205/202305?

@lolyu
Copy link
Contributor Author

lolyu commented Jan 18, 2024

@lolyu , do we want to backport to 202205/202305?

The vlan port admin down scenario is required for Libra, so 202205/202305 should have this.
@yxieca, any suggestions?

@yxieca yxieca merged commit 9a9ab18 into sonic-net:master Jan 18, 2024
23 checks passed
@yxieca
Copy link
Contributor

yxieca commented Jan 18, 2024

@lolyu , do we want to backport to 202205/202305?

The vlan port admin down scenario is required for Libra, so 202205/202305 should have this. @yxieca, any suggestions?

I suggest backport to 202305 and above, not 202205.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jan 18, 2024
)

* [dualtor] Disable zebra link-detect for vlan interfaces

Signed-off-by: Longxiang Lyu <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #17834

mssonicbld pushed a commit that referenced this pull request Jan 18, 2024
* [dualtor] Disable zebra link-detect for vlan interfaces

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu deleted the dualtor_disable_vlan_link_detect branch January 20, 2024 13:54
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jan 30, 2024
)

* [dualtor] Disable zebra link-detect for vlan interfaces

Signed-off-by: Longxiang Lyu <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #17936

mssonicbld pushed a commit that referenced this pull request Jan 30, 2024
* [dualtor] Disable zebra link-detect for vlan interfaces

Signed-off-by: Longxiang Lyu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants