public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager 2/2] pvereport: add interfaces.d directory
Date: Tue,  3 Oct 2023 13:36:38 +0200	[thread overview]
Message-ID: <20231003113638.2221189-2-a.lauterer@proxmox.com> (raw)
In-Reply-To: <20231003113638.2221189-1-a.lauterer@proxmox.com>

With the SDN becoming more prevalent, it is a good idea to include any
additional config files in '/etc/network/interfaces.d'.

Since no special suffix is enforced, we need to match against any file.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
 PVE/Report.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index 435458b9..34ddd204 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -76,6 +76,7 @@ my $init_report_cmds = sub {
 		'ip -details -4 route show',
 		'ip -details -6 route show',
 		'cat /etc/network/interfaces',
+		sub { dir2text('/etc/network/interfaces.d/', '.*') },
 	    ],
 	},
 	firewall => {
-- 
2.39.2





  reply	other threads:[~2023-10-03 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03 11:36 [pve-devel] [PATCH manager 1/2] pvereport: dir2text: ignore special . and .. files Aaron Lauterer
2023-10-03 11:36 ` Aaron Lauterer [this message]
2023-10-31 11:27 ` [pve-devel] [PATCH manager 3/3] pvereport: add sdn config directory Aaron Lauterer
2023-11-02 20:02 ` [pve-devel] applied: [PATCH manager 1/2] pvereport: dir2text: ignore special . and .. files Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231003113638.2221189-2-a.lauterer@proxmox.com \
    --to=a.lauterer@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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