public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit
@ 2025-08-12 12:57 Christoph Heiss
  2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: network-management: use correct syntax for code-blocks Christoph Heiss
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christoph Heiss @ 2025-08-12 12:57 UTC (permalink / raw)
  To: pbs-devel

First patch fixes the codeblock syntax of the section, as it uses the
asciidoc one rather than the RestructuredText, causing wrong rendering
in the final documentation.

Second patch just adds a link to the systemd .link file documentation,
as that might be useful to users to have directly available.

Christoph Heiss (2):
  docs: network-management: use correct syntax for code-blocks
  docs: network-management: link to systemd.link documentation

 docs/network-management.rst | 61 +++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 30 deletions(-)

-- 
2.50.1



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pbs-devel] [PATCH proxmox-backup 1/2] docs: network-management: use correct syntax for code-blocks
  2025-08-12 12:57 [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Christoph Heiss
@ 2025-08-12 12:57 ` Christoph Heiss
  2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 2/2] docs: network-management: link to systemd.link documentation Christoph Heiss
  2025-08-12 13:48 ` [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Michael Köppl
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Heiss @ 2025-08-12 12:57 UTC (permalink / raw)
  To: pbs-devel

Probably copied over from the asciidoc documentation for PVE, which uses
a different syntax.

Fixes: 03fc1efc ("docs: add documentation for proxmox-network-interface-pinning")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 docs/network-management.rst | 55 ++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

diff --git a/docs/network-management.rst b/docs/network-management.rst
index 492becdf..f1dc4cc5 100644
--- a/docs/network-management.rst
+++ b/docs/network-management.rst
@@ -106,49 +106,48 @@ When upgrading kernels, adding PCIe devices or updating your BIOS, automatically
 generated network interface names can change. To alleviate this issues, Proxmox
 Backup Server provides a tool for automatically generating .link files for
 overriding the name of network devices. It also automatically replaces the
-occurences of the old interface name in `/etc/network/interfaces`.
+occurrences of the old interface name in ``/etc/network/interfaces``.
 
-The generated link files are stored in `/usr/local/lib/systemd/network`. For the
-interfaces file a new file will be generated in the same place with a `.new`
-suffix. This way you can inspect the changes made to the configuration by
-using diff (or another diff viewer of your choice):
+The generated link files are stored in ``/usr/local/lib/systemd/network``. For
+the interfaces file a new file will be generated in the same place with a
+``.new`` suffix. This way you can inspect the changes made to the configuration
+by using diff (or another diff viewer of your choice):
 
-----
-diff -y /etc/network/interfaces /etc/network/interfaces.new
-----
+.. code-block:: console
+
+  diff -y /etc/network/interfaces /etc/network/interfaces.new
 
 If you see any problematic changes or want to revert the changes made by the
-pinning tool **before rebooting**, simply delete all `.new` files and the
-respective link files from `/usr/local/lib/systemd/network`.
+pinning tool **before rebooting**, simply delete all ``.new`` files and the
+respective link files from ``/usr/local/lib/systemd/network``.
 
-The following command will generate a .link file for all physical network
-interfaces that do not yet have a .link file and update selected Proxmox VE
+The following command will generate a ``.link`` file for all physical network
+interfaces that do not yet have a ``.link`` file and update selected Proxmox VE
 configuration files (see above). The generated names will use the default prefix
-`nic`, so the resulting interface names will be `nic1`, `nic2`, ...
+``nic``, so the resulting interface names will be ``nic1``, ``nic2``, ...
 
-----
-proxmox-network-interface-pinning generate
-----
+.. code-block:: console
 
-You can override the default prefix with the `--prefix` flag:
+  proxmox-network-interface-pinning generate
 
-----
-proxmox-network-interface-pinning generate --prefix myprefix
-----
+You can override the default prefix with the ``--prefix`` flag:
+
+.. code-block:: console
+
+  proxmox-network-interface-pinning generate --prefix myprefix
 
 It is also possible to pin only a specific interface:
 
-----
-proxmox-network-interface-pinning generate --interface enp1s0
-----
+.. code-block:: console
+
+  proxmox-network-interface-pinning generate --interface enp1s0
 
 When pinning a specific interface, you can specify the exact name that the
 interface should be pinned to:
 
-----
-proxmox-network-interface-pinning generate --interface enp1s0 --target-name if42
-----
+.. code-block:: console
 
-In order to apply the changes made by `proxmox-network-interface-pinning` to the
-network configuration, the host needs to be rebooted.
+  proxmox-network-interface-pinning generate --interface enp1s0 --target-name if42
 
+In order to apply the changes made by ``proxmox-network-interface-pinning`` to
+the network configuration, the host needs to be rebooted.
-- 
2.50.1



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pbs-devel] [PATCH proxmox-backup 2/2] docs: network-management: link to systemd.link documentation
  2025-08-12 12:57 [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Christoph Heiss
  2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: network-management: use correct syntax for code-blocks Christoph Heiss
@ 2025-08-12 12:57 ` Christoph Heiss
  2025-08-12 13:48 ` [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Michael Köppl
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Heiss @ 2025-08-12 12:57 UTC (permalink / raw)
  To: pbs-devel

Might be useful for users, to get a quick overview of the syntax and
semantics of the options.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 docs/network-management.rst | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/network-management.rst b/docs/network-management.rst
index f1dc4cc5..afbdb475 100644
--- a/docs/network-management.rst
+++ b/docs/network-management.rst
@@ -104,9 +104,9 @@ Overriding network device names
 
 When upgrading kernels, adding PCIe devices or updating your BIOS, automatically
 generated network interface names can change. To alleviate this issues, Proxmox
-Backup Server provides a tool for automatically generating .link files for
-overriding the name of network devices. It also automatically replaces the
-occurrences of the old interface name in ``/etc/network/interfaces``.
+Backup Server provides a tool for automatically generating `systemd .link`_
+files for overriding the name of network devices. It also automatically replaces
+the occurrences of the old interface name in ``/etc/network/interfaces``.
 
 The generated link files are stored in ``/usr/local/lib/systemd/network``. For
 the interfaces file a new file will be generated in the same place with a
@@ -151,3 +151,5 @@ interface should be pinned to:
 
 In order to apply the changes made by ``proxmox-network-interface-pinning`` to
 the network configuration, the host needs to be rebooted.
+
+.. _systemd .link: https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html
-- 
2.50.1



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit
  2025-08-12 12:57 [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Christoph Heiss
  2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: network-management: use correct syntax for code-blocks Christoph Heiss
  2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 2/2] docs: network-management: link to systemd.link documentation Christoph Heiss
@ 2025-08-12 13:48 ` Michael Köppl
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Köppl @ 2025-08-12 13:48 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Christoph Heiss

Read through the changed text sections and checked the visual changes
regarding code blocks. Did not notice any errors and the sections are
now easier to read thanks to the improved structure.

Reviewed-by: Michael Köppl <m.koeppl@proxmox.com>

On 8/12/25 14:57, Christoph Heiss wrote:
> First patch fixes the codeblock syntax of the section, as it uses the
> asciidoc one rather than the RestructuredText, causing wrong rendering
> in the final documentation.
> 
> Second patch just adds a link to the systemd .link file documentation,
> as that might be useful to users to have directly available.
> 
> Christoph Heiss (2):
>   docs: network-management: use correct syntax for code-blocks
>   docs: network-management: link to systemd.link documentation
> 
>  docs/network-management.rst | 61 +++++++++++++++++++------------------
>  1 file changed, 31 insertions(+), 30 deletions(-)
> 



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-12 13:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-12 12:57 [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Christoph Heiss
2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: network-management: use correct syntax for code-blocks Christoph Heiss
2025-08-12 12:57 ` [pbs-devel] [PATCH proxmox-backup 2/2] docs: network-management: link to systemd.link documentation Christoph Heiss
2025-08-12 13:48 ` [pbs-devel] [PATCH proxmox-backup 0/2] docs: network-management: improve pinning docs a bit Michael Köppl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal