From c79a839ba0835dd502d0e1d5203acb0bf4ec04a3 Mon Sep 17 00:00:00 2001 From: "a.letaillanter" Date: Mon, 2 Jun 2025 11:59:02 +0200 Subject: [PATCH 1/2] feat: config_db save --- _modules/sonic.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_modules/sonic.py b/_modules/sonic.py index 167e95c..2284c74 100644 --- a/_modules/sonic.py +++ b/_modules/sonic.py @@ -531,6 +531,19 @@ def get_running_configdb(): return data_json +def save_running_configdb(): + """Save running config_db configuration to startup config_db configuration. + + CLI Example: + + .. code-block:: bash + + salt "sonic.tor" sonic.save_running_configdb + """ + __salt__["cmd.run"]("config save") + return True + + def _apply_configdb_config(remote_tmpfile): # return nothing if done with success res = __salt__["cmd.run"]("sudo cp {} {}".format(remote_tmpfile, SONIC_DIR)) From b8198b23ad8943b3ce431c78d8f3561f8da819c6 Mon Sep 17 00:00:00 2001 From: "a.letaillanter" Date: Mon, 2 Jun 2025 12:29:07 +0200 Subject: [PATCH 2/2] ci: remove unsupported Pytheon 3.7 and add 3.11 Sonic 202405 has Python 3.9, Sonic 202405 has Python 3.11. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcaf5c3..d1f79c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.9, 3.11] steps: - uses: actions/checkout@v2