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

add bmp into feature table #22018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mike-dubrovsky
Copy link

@mike-dubrovsky mike-dubrovsky commented Mar 12, 2025

Why I did it

Currently bmp can't be enabled via “sudo config feature state bmp enabled"

How I did it

Conditionally add bmp into FEATURE table of /etc/sonic/init_cfg.json
if the feature is enabled in build system.

How to verify it

Execute “sudo config feature state bmp enabled"

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

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

Tested branch (Please provide the tested image version)

  • 202411

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

sonic:~$ grep -A 8 bmp /etc/sonic/init_cfg.json | more
"bmp": {
"state": "disabled",
"delayed": "False",
"has_global_scope": true,
"has_per_asic_scope": "False",
"auto_restart": "enabled",
"support_syslog_rate_limit": "true",
"high_mem_alert": "disabled"
},

sonic:~$ show feature status
Feature State AutoRestart SetOwner

bgp enabled enabled
bmp disabled enabled
...
...

sonic:~$ sudo config feature state bmp enabled

sonic:~$ show feature status
Feature State AutoRestart SetOwner

bgp enabled enabled
bmp enabled enabled
...
...

sonic:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1d09ba5dbe11 docker-sonic-bmp:latest "/usr/local/bin/supe…" 43 seconds ago Up 42 seconds bmp

@mike-dubrovsky mike-dubrovsky requested a review from lguohan as a code owner March 12, 2025 18:56
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants