confile: clear macvlan mode

parent 56a48037
...@@ -937,6 +937,11 @@ static int set_config_network_macvlan_mode(const char *key, const char *value, ...@@ -937,6 +937,11 @@ static int set_config_network_macvlan_mode(const char *key, const char *value,
return -1; return -1;
} }
if (lxc_config_value_empty(value)) {
netdev->priv.macvlan_attr.mode = 0;
return 0;
}
return macvlan_mode(&netdev->priv.macvlan_attr.mode, value); return macvlan_mode(&netdev->priv.macvlan_attr.mode, value);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment