Skip to content

Commit

Permalink
lib: networkd: fix a stray call to an old API
Browse files Browse the repository at this point in the history
THis call meant that the network file was generated using the global
state as reference instead of the local np_state, making things such as
the VLAN feature basically useless.
  • Loading branch information
schopin-pro committed Nov 12, 2021
1 parent 53b074e commit fb92447
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/networkd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,8 @@ netplan_netdef_write_networkd(

if (def->type >= NETPLAN_DEF_TYPE_VIRTUAL)
write_netdev_file(def, rootdir, path_base);
write_network_file(def, rootdir, path_base);
if (!netplan_netdef_write_network_file(np_state, def, rootdir, path_base, has_been_written, error))
return FALSE;
SET_OPT_OUT_PTR(has_been_written, TRUE);
return TRUE;
}
Expand Down

0 comments on commit fb92447

Please sign in to comment.