summaryrefslogtreecommitdiff
path: root/tests/data/netinfo/sample-ipaddrshow-output-down
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-05-01 14:18:18 -0600
committerChad Smith <chad.smith@canonical.com>2018-05-01 14:18:18 -0600
commit14cb4924a6cf191107f9c04698ace2753eb44d2b (patch)
treeffa46f32fb324c4218d1e7c5ce1ec04e850a7ba2 /tests/data/netinfo/sample-ipaddrshow-output-down
parent9f5907e1a14e3a4890fa25e0b1910a902e098d58 (diff)
downloadvyos-cloud-init-14cb4924a6cf191107f9c04698ace2753eb44d2b.tar.gz
vyos-cloud-init-14cb4924a6cf191107f9c04698ace2753eb44d2b.zip
netinfo: fix netdev_pformat when a nic does not have an address assigned.
The last set of changes to netdev_pformat ended up dropping the output of devices that were not up. This adds back the 'down' interfaces to the rendered output. LP: #1766302
Diffstat (limited to 'tests/data/netinfo/sample-ipaddrshow-output-down')
-rw-r--r--tests/data/netinfo/sample-ipaddrshow-output-down8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/data/netinfo/sample-ipaddrshow-output-down b/tests/data/netinfo/sample-ipaddrshow-output-down
new file mode 100644
index 00000000..cb516d64
--- /dev/null
+++ b/tests/data/netinfo/sample-ipaddrshow-output-down
@@ -0,0 +1,8 @@
+1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
+ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
+ inet 127.0.0.1/8 scope host lo
+ valid_lft forever preferred_lft forever
+ inet6 ::1/128 scope host
+ valid_lft forever preferred_lft forever
+44: eth0@if45: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
+ link/ether 00:16:3e:de:51:a6 brd ff:ff:ff:ff:ff:ff link-netnsid 0