]> git.proxmox.com Git - ovs.git/commitdiff
ovs-bugtool: Add interfaces file contents.
authorGurucharan Shetty <guru@ovn.org>
Mon, 29 Aug 2016 11:39:47 +0000 (04:39 -0700)
committerGurucharan Shetty <guru@ovn.org>
Tue, 30 Aug 2016 22:10:11 +0000 (15:10 -0700)
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>
utilities/bugtool/ovs-bugtool.in

index bb771b077879964204466e4d3b7bcdd0494566bc..2ec2f2a05907cb08b0d869c62f291c8ce7665cb2 100755 (executable)
@@ -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,