Skip to content

add test for feature switch frr_bmp#18346

Merged
qiluo-msft merged 20 commits intosonic-net:masterfrom
FengPan-Frank:frr_fix
May 24, 2025
Merged

add test for feature switch frr_bmp#18346
qiluo-msft merged 20 commits intosonic-net:masterfrom
FengPan-Frank:frr_fix

Conversation

@FengPan-Frank
Copy link
Copy Markdown
Contributor

@FengPan-Frank FengPan-Frank commented May 12, 2025

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?

Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?

Existing kvm test verifies the sanity and new test path.

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?

N/A

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

config = self.overwrite_feature_golden_config_db_multiasic(config, "frr_bmp")
config = self.overwrite_feature_golden_config_db_multiasic(config, "bmp")
else:
config = self.overwrite_feature_golden_config_db_singleasic(config, "frr_bmp")
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft May 12, 2025

Choose a reason for hiding this comment

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

config

Could you add testcase to ensure there is no container_check ERR logs, if frr_bmp is enabled and bmp is disabled? #Pending

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Offline discussed, will use another PR #18595

@StormLiangMS
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit 09d1c4d into sonic-net:master May 24, 2025
17 checks passed
bachalla pushed a commit to bachalla/sonic-mgmt that referenced this pull request Jun 2, 2025
Approach
What is the motivation for this PR?
Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?
Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?
Existing kvm test verifies the sanity and new test path.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Approach
What is the motivation for this PR?
Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?
Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?
Existing kvm test verifies the sanity and new test path.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Approach
What is the motivation for this PR?
Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?
Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?
Existing kvm test verifies the sanity and new test path.

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Approach
What is the motivation for this PR?
Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?
Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?
Existing kvm test verifies the sanity and new test path.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Approach
What is the motivation for this PR?
Enable frr_bmp in mgmt test, also added test case for covering monit log checking.

How did you do it?
Add golden_config overwrite for frr_bmp, add test case into monit.

How did you verify/test it?
Existing kvm test verifies the sanity and new test path.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
@lizhijianrd
Copy link
Copy Markdown
Contributor

Backport 202509: Azure/sonic-mgmt.msft#1059

lizhijianrd added a commit to Azure/sonic-mgmt.msft that referenced this pull request Mar 11, 2026
Cherry-pick of sonic-net/sonic-mgmt#18346 to 202509 branch.

**Original PR:** sonic-net/sonic-mgmt#18346
**Author:** @FengPan-Frank

### Why
frr_bmp is not a real container - it is a feature switch that tells bgpd
to start with BMP module. Tests that iterate enabled features and run
docker exec on them fail because there is no frr_bmp container.

### Changes
- Skip frr_bmp in test_pretest.py::test_disable_rsyslog_rate_limit
- Add frr_bmp golden config overwrite in generate_golden_config_db.py
- Add check_version_for_bmp handling in sonic.py and dut_utils.py
- Add monit test coverage for frr_bmp

### Verified
Tested on Nokia-7215-A1-MGX-G48S4 (testbed-bjw3-can-7215a1d-1),
test_disable_rsyslog_rate_limit passes with this fix.

Signed-off-by: Zhijian Li <zhijianli@microsoft.com>
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.

5 participants