networkctl: extend "networkctl status" per-interface output to include LLDP info
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Feb 2016 18:50:14 +0000 (19:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 19:40:57 +0000 (20:40 +0100)
commit837f57da416be279ef5793e43b34e41247aa90a2
tree14a4f08c47dffe341b9355968160b116c66ad8df
parent691d4da98a1288d75ea62e470280684d075e9725
networkctl: extend "networkctl status" per-interface output to include LLDP info

This adds a small and useful field to the "systemctl status" output: the
router(s) the interface is connected to as reported via LLDP. Example output:

● 2: enp0s25
       Link File: /usr/lib/systemd/network/99-default.link
            Type: ether
           State: degraded (configured)
            Path: pci-0000:00:19.0
          Driver: e1000e
    Connected To: GS1900 on port 2 (foobar)

i.e. the last line is the relevant one.
src/network/networkctl.c