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

[code sync] Merge code from sonic-net/sonic-buildimage:202305 to 202305 #475

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

mssonicbld
Copy link
Collaborator

* 7b88a427b - (head/202305) Prioritize configuration from config_db over constants.yml during BBR status initialization (#19590) (2024-12-09) [zitingguo-ms]<br>```

Gfrom2016 and others added 2 commits December 9, 2024 22:01
… status initialization (#19590)

Why I did it
There are two places which we can configure the BBR disabled/enabled, one is constants.yml, the other is by config_db. During run time, config_db win. But at the init stage, constants.yml win. This is a wrong logic, constants.yml only win when there is no such config in the config_db.

Work item tracking
Microsoft ADO (number only): 28302790
How I did it
Initialize BBR status from constants.yml only when config_db doesn't have BBR entry.

How to verify it
Build image and run the following:

# bbr status in constants.yml is set to disabled
# change the bbr status in config_db to enabled and reload config
admin@str2-7050cx3-acs-01:~$ redis-cli -n 4 hset "BGP_BBR|all" "status" "enabled"
(integer) 0
admin@str2-7050cx3-acs-01:~$ redis-cli -n 4 hget "BGP_BBR|all" "status"
"enabled"
admin@str2-7050cx3-acs-01:~$ vtysh -c 'show run' | grep 'allowas'
  neighbor PEER_V4 allowas-in 1
  neighbor PEER_V6 allowas-in 1
admin@str2-7050cx3-acs-01:~$ sudo config save -y
Running command: /usr/local/bin/sonic-cfggen -d --print-data > /etc/sonic/config_db.json
admin@str2-7050cx3-acs-01:~$ sudo config reload -y

# check bgpcfgd log, bbr default status is enabled
2024 Aug 14 05:42:47.653216 str2-7050cx3-acs-01 INFO bgp#bgpcfgd: BBRMgr::Initialized and enabled from config_db. Default state: 'enabled'
@mssonicbld mssonicbld merged commit a206101 into Azure:202305 Dec 10, 2024
3 checks passed
r12f pushed a commit that referenced this pull request Dec 19, 2024
… automatically (#19150)

#### Why I did it
src/sonic-platform-common
```
* 8e673d5 - (HEAD -> master, origin/master, origin/HEAD) Update additional PN for Innolight and Eoptolink (#476) (21 hours ago) [Anoop Kamath]
* 51c6207 - Fix the temperature parsing in nvme disks (#475) (8 days ago) [Vivek]
```
#### How I did it
#### How to verify it
#### Description for the changelog
liushilongbuaa pushed a commit that referenced this pull request Dec 26, 2024
… automatically (#20219)

#### Why I did it
src/sonic-platform-common
```
* cc22866 - (HEAD -> 202405, origin/202405) Make is_flat_memory more robust (#491) (25 hours ago) [Junchao-Mellanox]
* d494347 - Fix the temperature parsing in nvme disks (#475) (25 hours ago) [Vivek]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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