Merge pull request #1607 from ss1h2a3tw/master

adding warning for mtu ignoring
This commit is contained in:
Christian Brauner 2017-06-01 20:25:09 +10:00 committed by GitHub
commit 1573a51475

View File

@ -3351,6 +3351,8 @@ int lxc_assign_network(const char *lxcpath, char *lxcname,
netdev = iterator->elem;
if (netdev->type == LXC_NET_VETH && !am_root) {
if (netdev->mtu)
INFO("mtu ignored due to insufficient privilege");
if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid))
return -1;
// lxc-user-nic has moved the nic to the new ns.