Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions _modules/sonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading