internal/netconfig: add missing error check

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-05-09 17:04:31 -04:00
parent 9f6257b046
commit 61174cde06
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94

View File

@ -238,6 +238,9 @@ func applyInterfaces(dir, root string) error {
byName[details.Name] = details
}
links, err := netlink.LinkList()
if err != nil {
return err
}
for _, l := range links {
attr := l.Attrs()
// TODO: prefix log line with details about the interface.