confile: clear network flags

parent 7e0ce3e5
...@@ -871,6 +871,11 @@ static int set_config_network_flags(const char *key, const char *value, ...@@ -871,6 +871,11 @@ static int set_config_network_flags(const char *key, const char *value,
if (!netdev) if (!netdev)
return -1; return -1;
if (lxc_config_value_empty(value)) {
netdev->flags = 0;
return 0;
}
netdev->flags |= IFF_UP; netdev->flags |= IFF_UP;
return 0; return 0;
......
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