Returned false in link::remove() if NLE_NODEV is received. Review: https://reviews.apache.org/r/21823
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f751e3b6 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f751e3b6 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f751e3b6 Branch: refs/heads/master Commit: f751e3b6b9e521cd96be8fc61a3cac1fecc90a64 Parents: fe1e63e Author: Jie Yu <yujie....@gmail.com> Authored: Thu May 22 11:48:05 2014 -0700 Committer: Jie Yu <yujie....@gmail.com> Committed: Fri May 23 14:47:18 2014 -0700 ---------------------------------------------------------------------- src/linux/routing/link/link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/f751e3b6/src/linux/routing/link/link.cpp ---------------------------------------------------------------------- diff --git a/src/linux/routing/link/link.cpp b/src/linux/routing/link/link.cpp index 039e308..ebcd119 100644 --- a/src/linux/routing/link/link.cpp +++ b/src/linux/routing/link/link.cpp @@ -107,7 +107,7 @@ Try<bool> remove(const string& _link) int err = rtnl_link_delete(sock.get().get(), link.get().get()); if (err != 0) { - if (err == -NLE_OBJ_NOTFOUND) { + if (err == -NLE_OBJ_NOTFOUND || err == -NLE_NODEV) { return false; } return Error(nl_geterror(err));