Skip to content

add README.md#1

Merged
kcudnik merged 1 commit intosonic-net:masterfrom
lguohan:master
Mar 28, 2016
Merged

add README.md#1
kcudnik merged 1 commit intosonic-net:masterfrom
lguohan:master

Conversation

@lguohan
Copy link
Contributor

@lguohan lguohan commented Mar 28, 2016

No description provided.

@kcudnik kcudnik merged commit 889637c into sonic-net:master Mar 28, 2016
vasant17 pushed a commit to vasant17/sonic-sairedis that referenced this pull request Jan 16, 2020
Do NOT set SAI_OBJECT_NULL_ID as a value to SAI_PORT_ATTR_INGRESS_ACL
JunhongMao referenced this pull request in JunhongMao/sonic-sairedis Sep 1, 2023
•	Saidump for DNX-SAI sonic-net/sonic-buildimage#13561

Solution and modification:
To use the redis-db SAVE option to save the snapshot of DB each time and recover later, instead of looping through each entry in the table and saving it.

(1) Updated sonic-buildimage/build_debian.sh, to install Python library rdbtools into the host.
(2) Updated sonic-buildimage/src/sonic-sairedis/saidump/saidump.cpp, add a new option -r, which updates the rdbtools's output-JSON files' format.
(3) Add a new script file: files/scripts/saidump.sh, to do the below steps
  For each ASIC0, such as ASIC0,

  #1. Save the Redis data.
  sudo sonic-db-cli -n asic$1 SAVE > /dev/null

  #2. Move dump files to /var/run/redisX/
  docker exec database$1 sh -c "mv /var/lib/redis/dump.rdb /var/run/redis$1/"

  sonic-net#3. Run rdb command to convert the dump files into JSON files
  sudo python /usr/local/bin/rdb --command json  /var/run/redis$1/dump.rdb | sudo tee /var/run/redis$1/dump.json > /dev/null

  sonic-net#4. Run saidump -r to update the JSON files' format as same as the saidump before. Then we can get the saidump result in standard output.
  docker exec syncd$1 sh -c "saidump -r /var/run/redis$1/dump.json"

  sonic-net#5. clear
  sudo rm -f /var/run/redis$1/dump.rdb
  sudo rm -f /var/run/redis$1/dump.json

(4) Update sonic-buildimage/src/sonic-utilities/scripts/generate_dump, replace saidump with saidump.sh
blorente added a commit to blorente/sonic-sairedis that referenced this pull request Feb 12, 2026
* fix: It builds //meta:saimetadata

* checkpoint: builds //lib:all

* checkpoint: Can build vslib/...

* cleanup: Install doxygen properly

* cleanup: Remove leftover comments

* cleanup: Depend on SAI as a module

* cleanup: remove obsolete targets

* fix: re-enable -Werror

* cleanup: Leave everything as public, it's fine

* feat(vslib): Add tests for vslib

* feat(lib): Add tests to //lib

* checkpoint: I can build a tar for saimeta

* feat: Add dev tar for libsairedis

* cleanup: Clean up TODOs

* cleanup: Adjust paths

* fix: Make sure config.h doesn't fail if we're not running at the root

* cleanup: Self review
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