[ovs-dev] ovs-bugtool: Add interfaces file contents.
diff mbox

Message ID 1472470864-27843-1-git-send-email-guru@ovn.org
State Accepted
Headers show

Commit Message

Guru Shetty Aug. 29, 2016, 11:41 a.m. UTC
It is useful to know the contents of interfaces file
for debugging in debian based systems.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
---
 utilities/bugtool/ovs-bugtool.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Ben Pfaff Aug. 30, 2016, 10:08 p.m. UTC | #1
On Mon, Aug 29, 2016 at 04:41:04AM -0700, Gurucharan Shetty wrote:
> It is useful to know the contents of interfaces file
> for debugging in debian based systems.
> 
> Signed-off-by: Gurucharan Shetty <guru@ovn.org>

Acked-by: Ben Pfaff <blp@ovn.org>

Patch
diff mbox

diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
index bb771b0..2ec2f2a 100755
--- a/utilities/bugtool/ovs-bugtool.in
+++ b/utilities/bugtool/ovs-bugtool.in
@@ -91,6 +91,8 @@  ROUTE_RE = re.compile(r'^.*/route-.*')
 SYSCONFIG_HWCONF = '/etc/sysconfig/hwconf'
 SYSCONFIG_NETWORK = '/etc/sysconfig/network'
 SYSCONFIG_NETWORK_SCRIPTS = '/etc/sysconfig/network-scripts'
+INTERFACES = '/etc/network/interfaces'
+INTERFACESD = '/etc/network/interfaces.d'
 PROC_NET_VLAN_DIR = '/proc/net/vlan'
 PROC_NET_SOFTNET_STAT = '/proc/net/softnet_stat'
 MODPROBE_CONF = '/etc/modprobe.conf'
@@ -570,8 +572,9 @@  exclude those logs from the archive.
 
     tree_output(CAP_NETWORK_CONFIG, SYSCONFIG_NETWORK_SCRIPTS, IFCFG_RE)
     tree_output(CAP_NETWORK_CONFIG, SYSCONFIG_NETWORK_SCRIPTS, ROUTE_RE)
-    file_output(CAP_NETWORK_CONFIG,
-                [SYSCONFIG_NETWORK, RESOLV_CONF, NSSWITCH_CONF, HOSTS])
+    tree_output(CAP_NETWORK_CONFIG, INTERFACESD)
+    file_output(CAP_NETWORK_CONFIG, [SYSCONFIG_NETWORK, RESOLV_CONF,
+                NSSWITCH_CONF, HOSTS, INTERFACES])
     file_output(CAP_NETWORK_CONFIG,
                 [NTP_CONF, IPTABLES_CONFIG, HOSTS_ALLOW, HOSTS_DENY])
     file_output(CAP_NETWORK_CONFIG, [OPENVSWITCH_DEFAULT_SWITCH,