From d2002c292af2692997073514bdb60d4371df3058 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 22 May 2024 22:18:09 +0200 Subject: cli: commit-archive with git does not make use of source-address CLI optionarchive (cherry picked from commit d9fef261e770cb45d5f02ae5e448590c7f6fead1) --- docs/cli.rst | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/docs/cli.rst b/docs/cli.rst index 55ec2be0..c1a9d14c 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -369,7 +369,7 @@ command. You are now in a sublevel relative to ``interfaces ethernet eth0``, all commands executed from this point on are relative to this sublevel. Use -eithe the :cfgcmd:`top` or :cfgcmd:`exit` command to go back to the top +either the :cfgcmd:`top` or :cfgcmd:`exit` command to go back to the top of the hierarchy. You can also use the :cfgcmd:`up` command to move only one level up at a time. @@ -410,7 +410,7 @@ working configuration indicating line changes with ``+`` for additions, loopback lo { } -It is also possible to display all `set` commands within configuration +It is also possible to display all :cfgcmd:`set` commands within configuration mode using :cfgcmd:`show | commands` .. code-block:: none @@ -501,6 +501,9 @@ different levels in the hierarchy. Warning: configuration changes have not been saved. vyos@vyos:~$ +.. hint:: You can specify a commit message with + :cfgcmd:`commit comment `. + .. _save: .. cfgcmd:: save @@ -854,28 +857,37 @@ to :cfgcmd:`commit`. You will have to set the commit-archive location. TFTP, FTP, SCP and SFTP servers are supported. Every time a :cfgcmd:`commit` is successful 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``. +be ``config.boot-hostname.YYYYMMDD_HHMMSS``. .. cfgcmd:: set system config-management commit-archive location - Specify remote location of commit archive as any of the below - :abbr:`URI (Uniform Resource Identifier)` + Specify remote location of commit archive as any of the below + :abbr:`URI (Uniform Resource Identifier)` - * ``scp://:@:/`` - * ``sftp://:@/`` - * ``ftp://:@/`` - * ``tftp:///`` + * ``http://:@:/`` + * ``https://:@:/`` + * ``ftp://:@/`` + * ``sftp://:@/`` + * ``scp://:@:/`` + * ``tftp:///`` + * ``git+https://:@/`` -.. note:: The number of revisions don't affect the commit-archive. + Since username and password are part of the URI, they need to be + properly url encoded if containing special characters. -.. note:: You may find VyOS not allowing the secure connection because - it cannot verify the legitimacy of the remote server. You can use - the workaround below to quickly add the remote host's SSH - fingerprint to your ``~/.ssh/known_hosts`` file: + .. note:: The number of revisions don't affect the commit-archive. - .. code-block:: none + .. note:: When using Git as destination for the commit archive the + ``source-address`` CLI option has no effect. + + .. note:: You may find VyOS not allowing the secure connection because + it cannot verify the legitimacy of the remote server. You can use + the workaround below to quickly add the remote host's SSH + fingerprint to your ``~/.ssh/known_hosts`` file: + + .. code-block:: none - vyos@vyos# ssh-keyscan >> ~/.ssh/known_hosts + vyos@vyos# ssh-keyscan >> ~/.ssh/known_hosts Saving and loading manually --------------------------- -- cgit v1.2.3