From 4b1bb087cea625e1d5117d6bb544bb769c88ef14 Mon Sep 17 00:00:00 2001 From: Manuel Montecelo Date: Tue, 2 Jan 2018 14:44:32 +0100 Subject: [PATCH] TT#24206 Use of legacy network device names Checks: - static configuration: passing the option "net.ifnames=0" to the kernel during boot - check if there are such devices ("eth*") in the system when running Change-Id: I7d17777463d4dee7c067d1bf3e08080f91898b45 --- templates/830_network-interfaces-legacy.yaml.tt2 | 16 ++++++++++++++++ templates/goss.yaml.tt2 | 1 + 2 files changed, 17 insertions(+) create mode 100644 templates/830_network-interfaces-legacy.yaml.tt2 diff --git a/templates/830_network-interfaces-legacy.yaml.tt2 b/templates/830_network-interfaces-legacy.yaml.tt2 new file mode 100644 index 0000000..77abe59 --- /dev/null +++ b/templates/830_network-interfaces-legacy.yaml.tt2 @@ -0,0 +1,16 @@ +file: + + /etc/default/grub: + exists: true + mode: "0644" + owner: root + group: root + filetype: file + contains: ['/^GRUB_CMDLINE_LINUX_DEFAULT=".*net.ifnames=0.*"/'] + +command: + + ip link: + exit-status: 0 + stdout: ['/: eth[0-9]/'] + stderr: [] diff --git a/templates/goss.yaml.tt2 b/templates/goss.yaml.tt2 index 1a63981..cc80af7 100644 --- a/templates/goss.yaml.tt2 +++ b/templates/goss.yaml.tt2 @@ -37,6 +37,7 @@ gossfile: [% IF general.ngcp_type != 'spce' -%] 822_network-ports-ngcp-pro.yaml: {} [% END -%] + 830_network-interfaces-legacy.yaml: {} 900_service-ngcp-api.yaml: {} 910_service-influxdb.yaml: {} 911_service-grafana.yaml: {}