From f06b82fdb0cbb0ca142bd753faa859ce05b338ff Mon Sep 17 00:00:00 2001 From: Cheeze_It Date: Thu, 17 Jun 2021 16:29:56 -0600 Subject: PING: T3634: Adding do not fragment to Ping Here we're just making a small change to reflect that we added do not fragment to ping. --- docs/troubleshooting/index.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/troubleshooting/index.rst b/docs/troubleshooting/index.rst index 1013dba6..902acf3a 100644 --- a/docs/troubleshooting/index.rst +++ b/docs/troubleshooting/index.rst @@ -36,6 +36,7 @@ section and are omitted from the output here): bypass-route count deadline + do-not-fragment flood interface interval -- cgit v1.2.3 From 7dab67c12964f5fbaeee0619c6db6748c14e924e Mon Sep 17 00:00:00 2001 From: rebortg Date: Fri, 18 Jun 2021 21:12:29 +0200 Subject: documentation: fix build error --- docs/documentation.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/documentation.rst b/docs/documentation.rst index e0d73155..5d8b67c3 100644 --- a/docs/documentation.rst +++ b/docs/documentation.rst @@ -161,7 +161,7 @@ The plugin will warn on build if a headline has a duplicate name in the same document. To prevent this warning you have to put a custom link on top of the headline. -.. code-block:: +.. code-block:: none Section A ========== @@ -186,10 +186,6 @@ top of the headline. Lorem ipsum dolor sit amet, consetetur sadipscing elitr - - - - Address space ^^^^^^^^^^^^^ -- cgit v1.2.3 From 8f776a9e23f63f77c421126def5ea04a77a54f81 Mon Sep 17 00:00:00 2001 From: fett0 <50275740+fett0@users.noreply.github.com> Date: Fri, 18 Jun 2021 17:56:20 -0300 Subject: automation: add custom pre/post-commit hooks (#550) --- docs/automation/command-scripting.rst | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'docs') diff --git a/docs/automation/command-scripting.rst b/docs/automation/command-scripting.rst index 6bc6690c..cf6c1f7b 100644 --- a/docs/automation/command-scripting.rst +++ b/docs/automation/command-scripting.rst @@ -105,6 +105,45 @@ group, the script can be safeguarded like this: exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@" fi +Executing pre-hooks/post-hooks Scripts +-------------------------------------- + +Vyos has the ability to run custom scripts before and after each commit + +The default directories where your custom Scripts should be located are: + +.. code-block:: none + + /config/scripts/commit/pre-hooks.d - Directory with scripts that run before + each commit. + + /config/scripts/commit/post-hooks.d - Directory with scripts that run after + each commit. + +Scripts are run in alphabetical order. Their names must consist entirely of +ASCII upper- and lower-case letters,ASCII digits, ASCII underscores, and +ASCII minus-hyphens.No other characters are allowed. + +.. note:: Custom scripts are not executed with root privileges (Use sudo inside if this is necessary). + +A simple example is shown below, where the ops command executed in +the post-hook script is "show interfaces". + +.. code-block:: none + + vyos@vyos# set interfaces ethernet eth1 address 192.0.2.3/24 + vyos@vyos# commit + Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down + Interface IP Address S/L Description + --------- ---------- --- ----------- + eth0 198.51.100.10/24 u/u + eth1 192.0.2.3/24 u/u + eth2 - u/u + eth3 - u/u + lo 203.0.113.5/24 u/u + + + Postconfig on boot ------------------ -- cgit v1.2.3 From 61bd4d04522cddf0166dd270f47dd18c0ef12cb2 Mon Sep 17 00:00:00 2001 From: erkin Date: Sun, 20 Jun 2021 20:16:57 +0300 Subject: Deprecate `loadkey` --- docs/configuration/service/ssh.rst | 29 +++++++++++++++++++++++++++++ docs/configuration/system/login.rst | 4 ++++ 2 files changed, 33 insertions(+) (limited to 'docs') diff --git a/docs/configuration/service/ssh.rst b/docs/configuration/service/ssh.rst index 6b09d40d..dc382b67 100644 --- a/docs/configuration/service/ssh.rst +++ b/docs/configuration/service/ssh.rst @@ -156,3 +156,32 @@ Operation Two new files ``/config/auth/id_rsa_rpki`` and ``/config/auth/id_rsa_rpki.pub`` will be created. + +.. opcmd:: generate public-key-commands name path + + Generate the configuration mode commands to add a public key for + :ref:`ssh_key_based_authentication`. + `` can be a local path or a URL pointing at a remote file. + Supported remote protocols are FTP, HTTP, HTTPS, SCP/SFTP and TFTP. + + Example: + + .. code-block:: none + + alyssa@vyos:~$ generate public-key-commands name alyssa path sftp://example.net/home/alyssa/.ssh/id_rsa.pub + # To add this key as an embedded key, run the following commands: + configure + set system login user alyssa authentication public-keys alyssa@example.net key AAA... + set system login user alyssa authentication public-keys alyssa@example.net type ssh-rsa + commit + save + exit + + ben@vyos:~$ generate public-key-command user ben path ~/.ssh/id_rsa.pub + # To add this key as an embedded key, run the following commands: + configure + set system login user ben authentication public-keys ben@vyos key AAA... + set system login user ben authentication public-keys ben@vyos type ssh-dss + commit + save + exit diff --git a/docs/configuration/system/login.rst b/docs/configuration/system/login.rst index 0492f4d1..784e4f3e 100644 --- a/docs/configuration/system/login.rst +++ b/docs/configuration/system/login.rst @@ -76,6 +76,10 @@ The third part is simply an identifier, and is for your own reference. .. cfgcmd:: loadkey + **Deprecation notice:** ``loadkey`` has been deprecated in favour of + :opcmd:`generate public-key-commands` and will be removed in a future + version. See :ref:`ssh:operation`. + SSH keys can not only be specified on the command-line but also loaded for a given user with `` from a file pointed to by `.` Keys can be either loaded from local filesystem or any given remote location -- cgit v1.2.3 From 6f5dad1978811601f5219f6856f11b994dde301d Mon Sep 17 00:00:00 2001 From: erkin Date: Sun, 20 Jun 2021 20:23:53 +0300 Subject: ssh: Fix formatting --- docs/configuration/service/ssh.rst | 3 ++- docs/configuration/system/login.rst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/configuration/service/ssh.rst b/docs/configuration/service/ssh.rst index dc382b67..40ec62f5 100644 --- a/docs/configuration/service/ssh.rst +++ b/docs/configuration/service/ssh.rst @@ -161,7 +161,8 @@ Operation Generate the configuration mode commands to add a public key for :ref:`ssh_key_based_authentication`. - `` can be a local path or a URL pointing at a remote file. + ```` can be a local path or a URL pointing at a remote file. + Supported remote protocols are FTP, HTTP, HTTPS, SCP/SFTP and TFTP. Example: diff --git a/docs/configuration/system/login.rst b/docs/configuration/system/login.rst index 784e4f3e..09b6e68b 100644 --- a/docs/configuration/system/login.rst +++ b/docs/configuration/system/login.rst @@ -78,7 +78,7 @@ The third part is simply an identifier, and is for your own reference. **Deprecation notice:** ``loadkey`` has been deprecated in favour of :opcmd:`generate public-key-commands` and will be removed in a future - version. See :ref:`ssh:operation`. + version. See :ref:`ssh`. SSH keys can not only be specified on the command-line but also loaded for a given user with `` from a file pointed to by `.` Keys -- cgit v1.2.3 From b9d6795ac8d9043af3e0444385222b5ed38e8f1d Mon Sep 17 00:00:00 2001 From: rebortg Date: Mon, 21 Jun 2021 06:22:35 +0000 Subject: Github: update current branch --- docs/_include/vyos-1x | 2 +- docs/changelog/1.3.rst | 29 ++++++++++++++++++++++++++++- docs/changelog/1.4.rst | 43 ++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/_include/vyos-1x b/docs/_include/vyos-1x index 78099bcc..0de84e53 160000 --- a/docs/_include/vyos-1x +++ b/docs/_include/vyos-1x @@ -1 +1 @@ -Subproject commit 78099bccc510c90ad7cfa5f56475ba024d5d53a7 +Subproject commit 0de84e53c36604af2bac3b5d8eb00480f9623aa0 diff --git a/docs/changelog/1.3.rst b/docs/changelog/1.3.rst index afc77f4a..99d2dead 100644 --- a/docs/changelog/1.3.rst +++ b/docs/changelog/1.3.rst @@ -8,6 +8,33 @@ _ext/releasenotes.py +2021-06-19 +========== + +* :vytask:`T3633` (feature): Add LRO offload for interface ethernet +* :vytask:`T3632` (bug): policy: route-map: unable to configure route-target / site-of-origin + + +2021-06-18 +========== + +* :vytask:`T3634` (feature): Add op command option for ping for do not fragment bit to be set + + +2021-06-17 +========== + +* :vytask:`T3631` (feature): route-map: migrate "set extcommunity-rt" and "set extcommunity-soo" to "set extcommunity rt|soo" to match FRR syntax + + +2021-06-16 +========== + +* :vytask:`T3623` (default): Fix for dummy interface option in the operational command "clear interfaces dummy" +* :vytask:`T2425` (feature): Rewrite all policy zebra filters to XML/Python style +* :vytask:`T3630` (feature): op-mode: add "show version kernel" command + + 2021-06-13 ========== @@ -528,7 +555,7 @@ 2021-02-16 ========== -* :vytask:`T3318` (feature): Update Linux Kernel to v5.4.125 / 5.10.43 +* :vytask:`T3318` (feature): Update Linux Kernel to v5.4.127 / 5.10.45 2021-02-14 diff --git a/docs/changelog/1.4.rst b/docs/changelog/1.4.rst index 8d4d8125..4d5cfe7b 100644 --- a/docs/changelog/1.4.rst +++ b/docs/changelog/1.4.rst @@ -8,6 +8,47 @@ _ext/releasenotes.py +2021-06-21 +========== + +* :vytask:`T3628` (bug): commit-archive source-address Interface Broken +* :vytask:`T3563` (default): commit-archive breaks with IPv6 source addresses + + +2021-06-20 +========== + +* :vytask:`T3637` (bug): vrf: bind-to-all didn't work properly +* :vytask:`T3639` (default): GCC preprocessor clobbers C comments + + +2021-06-19 +========== + +* :vytask:`T3633` (feature): Add LRO offload for interface ethernet +* :vytask:`T3632` (bug): policy: route-map: unable to configure route-target / site-of-origin + + +2021-06-18 +========== + +* :vytask:`T3634` (feature): Add op command option for ping for do not fragment bit to be set +* :vytask:`T3599` (default): Migrate NHRP to XML/Python + + +2021-06-17 +========== + +* :vytask:`T3624` (feature): BGP: add support for extended community bandwidth definition + + +2021-06-16 +========== + +* :vytask:`T3623` (default): Fix for dummy interface option in the operational command "clear interfaces dummy" +* :vytask:`T3630` (feature): op-mode: add "show version kernel" command + + 2021-06-13 ========== @@ -621,7 +662,7 @@ ========== * :vytask:`T3313` (bug): ospfv3 interface missing options -* :vytask:`T3318` (feature): Update Linux Kernel to v5.4.125 / 5.10.43 +* :vytask:`T3318` (feature): Update Linux Kernel to v5.4.127 / 5.10.45 2021-02-15 -- cgit v1.2.3