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

[docker-fpm-frr] Set default value to SMARTSWITCH env variable in TSA/B/C #20413

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

fountzou
Copy link
Contributor

@fountzou fountzou commented Oct 3, 2024

Why I did it

Recently, as part of #19729, TSA/B/C functionality has been modified to take into account the env variable SMARTSWITCH. This env variable is being exposed though a newly added platform_utils file in frr.

The expected behavior is that

  1. platform_utils script to be present; instead it is missing.
  2. SMARTSWITCH value to be either true or false; instead it is " ".

As a result, "reliable TSA" feature is affected. This PR fixes this issue.

Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Errors from sourcing the missing platform_utils script have been suppressed.
  • SMARTSWITCH default value is set to false if it has been unset or empty.

How to verify it

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)

_________________               _________________
 ~-.              \  |\___/|  /              .-~
     ~-.           \ / o o \ /           .-~
        >           \\  W  //           <
       /             /~---~\             \
      /_            |       |            _\
         ~-.        |       |        .-~
            ;        \     /        i
           /___      /\   /\      ___\
                ~-. /  \_/  \ .-~
                   V         V

… sourcing the platform_utils file.

Signed-off-by: fountzou <ioannis.fountzoulas@nokia.com>
@fountzou fountzou requested a review from lguohan as a code owner October 3, 2024 10:21
@fountzou fountzou changed the title [docker-fpm-frr] Set default value of SMARTSWITCH env variable in TSA/B/C [docker-fpm-frr] Set default value to SMARTSWITCH env variable in TSA/B/C Oct 3, 2024
@arlakshm
Copy link
Contributor

/azpw ms_conflict

@fountzou
Copy link
Contributor Author

Hi @abdosi, Could you please help to review? This affects Reliable TSA testcases sonic-net/sonic-mgmt#13290 which are about to be merged.

@arlakshm arlakshm requested a review from kperumalbfn October 23, 2024 18:12
@arlakshm
Copy link
Contributor

@kperumalbfn, please help signoff and merge

@kperumalbfn kperumalbfn merged commit c2f88d0 into sonic-net:master Oct 23, 2024
23 checks passed
rkavitha-hcl pushed a commit to rkavitha-hcl/sonic-buildimage that referenced this pull request Nov 15, 2024
… sourcing the platform_utils file. (sonic-net#20413)

Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file.

Signed-off-by: fountzou <ioannis.fountzoulas@nokia.com>
aidan-gallagher pushed a commit to aidan-gallagher/sonic-buildimage that referenced this pull request Nov 16, 2024
… sourcing the platform_utils file. (sonic-net#20413)

Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file.

Signed-off-by: fountzou <ioannis.fountzoulas@nokia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants