network: warn about unknown sections when parsing .netdev files

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1774242.
Now we'll emit the warning about unknown section [Netdev], making the issue
much easier to diagnose.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-11-25 16:45:29 +01:00
parent ddeb3f5d4b
commit 130b812f9d
23 changed files with 64 additions and 35 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ static int netdev_vrf_fill_message_create(NetDev *netdev, Link *link, sd_netlink
const NetDevVTable vrf_vtable = {
.object_size = sizeof(Vrf),
.sections = "Match\0NetDev\0VRF\0",
.sections = NETDEV_COMMON_SECTIONS "VRF\0",
.fill_message_create = netdev_vrf_fill_message_create,
.create_type = NETDEV_CREATE_MASTER,
.generate_mac = true,