summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index d6b06e8a97..91b1e3c7bd 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -315,7 +315,7 @@ int config_parse_netdev(const char *unit,
break;
case NETDEV_KIND_MACVLAN:
- r = hashmap_put(network->macvlans, netdev->name, netdev);
+ r = hashmap_put(network->macvlans, netdev->ifname, netdev);
if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, EINVAL,
"Can not add MACVLAN to network: %s", rvalue);