summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-17 07:15:53 +0100
committerGitHub <noreply@github.com>2020-03-17 07:15:53 +0100
commit8f9fc499cadcd3bf3961182d9822039e1efe60bb (patch)
tree1e366611f09eb55193ee788216cdd425b94ee3ac
parent89f6c1e4115b73d41e775099822688b3433481be (diff)
parent8c2b323506930fc9a412783a14111391aa4880c3 (diff)
downloadvyos-documentation-8f9fc499cadcd3bf3961182d9822039e1efe60bb.tar.gz
vyos-documentation-8f9fc499cadcd3bf3961182d9822039e1efe60bb.zip
Merge pull request #217 from currite/config-related-reindex
index reorganisation to clarify concepts related to config, manage, a…
-rw-r--r--docs/configuration-overview.rst49
-rw-r--r--docs/interfaces/advanced-index.rst8
-rw-r--r--docs/system/advanced-index.rst9
-rw-r--r--docs/system/basic-index.rst8
-rw-r--r--docs/system/config-management.rst32
5 files changed, 42 insertions, 64 deletions
diff --git a/docs/configuration-overview.rst b/docs/configuration-overview.rst
index cadaabac..27bd5d36 100644
--- a/docs/configuration-overview.rst
+++ b/docs/configuration-overview.rst
@@ -29,8 +29,8 @@ A VyOS system has three major types of configurations:
can be multiple configuration files. The default or "boot" configuration is
saved and loaded from the file ``/config/config.boot``.
-Work the Config
-===============
+Seeing the configuration
+========================
.. opcmd:: show configuration
@@ -121,8 +121,8 @@ Both these commands should be executed when in operational mode, they do not
work directly in configuration mode. The is a special way on how to
:ref:`run_opmode_from_config_mode`.
-Navigating
-==========
+Navigating the configuration
+============================
When entering the configuration mode you are navigating inside the tree
structure exported in the overview above, to enter configuration mode enter
@@ -223,10 +223,10 @@ to the top level.
vyos@vyos# exit
Warning: configuration changes have not been saved.
-Managing
-========
+Editing the configuration
+=========================
-The configuration is managed by the use of :cfgcmd:`set` and :cfgcmd:`delete`
+The configuration can be edited by the use of :cfgcmd:`set` and :cfgcmd:`delete`
commands from within configuration mode. Configuration commands are flattened
from the tree into 'one-liner' commands shown in :opcmd:`show configuration
commands` from operation mode.
@@ -337,11 +337,14 @@ commands.
--------- ---------- --- -----------
eth0 0.0.0.0/0 u/u
-Config Archive
-==============
+Managing configurations
+=======================
-VyOS automatically maintains backups of every previous configurations which
-has been committed to the system.
+VyOS comes with an integrated versioning system for the system configuration.
+It automatically maintains a backup of every previous configuration
+which has been committed to the system.
+The configurations are versioned locally for rollback
+but they can also be stored on a remote host for archiving/backup reasons.
Local Archive
-------------
@@ -416,6 +419,7 @@ previous revisions if something goes wrong.
You can specify the number of revisions stored on disk. N can be in the
range of 0 - 65535. When the number of revisions exceeds the configured
value, the oldest revision is removed.
+ The default setting for this value is to store 20 revisions locally.
Rollback Changes
----------------
@@ -443,19 +447,26 @@ Remote Archive
--------------
VyOS can upload the configuration to a remote location after each call to
-:cfgcmd:`commit`. TFTP, FTP, and SFTP servers are supported.
+:cfgcmd:`commit`. You will have to set the commit-archive location.
+TFTP, FTP, and SFTP servers are supported.
+Every time a :cfgcmd:`commit` is successfull
+the ``config.boot`` file will be copied to the defined destination(s).
+The filename used on the remote host will be ``config.boot-hostname.YYYYMMDD_HHMMSS``
-.. cfgcmd set system config-management commit-archive location <URI>
+.. cfgcmd:: set system config-management commit-archive location <URI>
- Specify remote location of commit archive.
+ Specify remote location of commit archive as any of the below :abbr:`URI (Uniform
+ Resource Identifier)`
- * scp://<user>:<passwd>@<host>/<dir>
- * sftp://<user>:<passwd>@<host>/<dir>
- * ftp://<user>:<passwd>@<host>/<dir>
- * tftp://<host>/<dir>
+ * ``scp://<user>:<passwd>@<host>/<dir>``
+ * ``sftp://<user>:<passwd>@<host>/<dir>``
+ * ``ftp://<user>:<passwd>@<host>/<dir>``
+ * ``tftp://<host>/<dir>``
+
+.. note:: The number of revisions don't affect the commit-archive.
Restore Default
-===============
+---------------
In the case you want to completely delete your configuration and restore the
default one, you can enter the following command in configuration mode:
diff --git a/docs/interfaces/advanced-index.rst b/docs/interfaces/advanced-index.rst
index e86a9330..73c471e9 100644
--- a/docs/interfaces/advanced-index.rst
+++ b/docs/interfaces/advanced-index.rst
@@ -1,8 +1,8 @@
-.. _network-interfaces:
+.. _advanced_network-interfaces:
-##################
-Network Interfaces
-##################
+###########################
+Advanced Network Interfaces
+###########################
.. toctree::
:maxdepth: 1
diff --git a/docs/system/advanced-index.rst b/docs/system/advanced-index.rst
index 1ce1b405..9241821b 100644
--- a/docs/system/advanced-index.rst
+++ b/docs/system/advanced-index.rst
@@ -1,13 +1,12 @@
-.. _system_config:
+.. _advanced_system_tweaks:
-####################
-System Configuration
-####################
+######################
+Advanced System Tweaks
+######################
.. toctree::
:maxdepth: 2
- config-management
eventhandler
flow-accounting
ntp
diff --git a/docs/system/basic-index.rst b/docs/system/basic-index.rst
index ab23478f..cb030089 100644
--- a/docs/system/basic-index.rst
+++ b/docs/system/basic-index.rst
@@ -1,8 +1,8 @@
-.. _basic_system_config:
+.. _basic_system_tweaks:
-##########################
-Basic System Configuration
-##########################
+###################
+Basic System Tweaks
+###################
.. toctree::
:maxdepth: 2
diff --git a/docs/system/config-management.rst b/docs/system/config-management.rst
deleted file mode 100644
index 9d65adb3..00000000
--- a/docs/system/config-management.rst
+++ /dev/null
@@ -1,32 +0,0 @@
-.. _config-management:
-
-########################
-Configuration Management
-########################
-
-VyOS comes with an integrated versioning system for the system configuration.
-The configurations are versioned locally for rollback but they can also be
-stored on a remote host for archiving/backup reasons.
-
-.. cfgcmd:: set system config-management commit-revisions <number>
-
- Change the number of commit revisions to `<number>`, the default setting for
- this value is to store 20 revisions locally.
-
-.. cfgcmd:: set system config-management commit-archive location <url>
-
- If you want to save all config changes to a remote destination. Set the
- commit-archive location. Every time a commit is successfully the
- ``config.boot`` file will be copied to the defined destination(s). The
- filename used on the remote host used will be:
- ``config.boot-hostname.YYYYMMDD_HHMMSS``
-
- Destinations will be configured as any of the below :abbr:`URI (Uniform
- Resource Identifier)`
-
- * ``scp://<user>:<passwd>@<host>/<dir>``
- * ``sftp://<user>:<passwd>@<host>/<dir>``
- * ``ftp://<user>:<passwd>@<host>/<dir>``
- * ``tftp://<host>/<dir>``
-
-.. note:: The number of revisions don't effect the commit-archive. \ No newline at end of file