diff options
-rwxr-xr-x | bin/network_configs | 12 | ||||
-rw-r--r-- | units/info/jobs.pxu | 7 | ||||
-rw-r--r-- | units/info/test-plan.pxu | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/bin/network_configs b/bin/network_configs new file mode 100755 index 0000000..f546f3e --- /dev/null +++ b/bin/network_configs @@ -0,0 +1,12 @@ +#!/bin/bash + +if `grep -q "replaced by netplan" /etc/network/interfaces`; then + for configfile in `find /etc/netplan -type f`; do + echo "Config File $configfile:" + cat $configfile + echo "" + done +else + echo "/etc/network/interfaces:" + cat /etc/network/interfaces +fi diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 93ccd92..2e1b120 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -452,3 +452,10 @@ command: lstopo $PLAINBOX_SESSION_SHARE/lstopo_visual.png; \ [ -e "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" ] && \ cat "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" + +id: info/network-config +plugin: attachment +category_id: com.canonical.plainbox::info +estimated_duration: 0.2 +_summary: attach network configuration +command: network_configs diff --git a/units/info/test-plan.pxu b/units/info/test-plan.pxu index d293954..6e59a73 100644 --- a/units/info/test-plan.pxu +++ b/units/info/test-plan.pxu @@ -70,6 +70,7 @@ include: efi_attachment info/disk_partitions info/hdparm_.*.txt + info/network-config installer_debug.gz kernel_cmdline_attachment lsblk_attachment |