From 7ca221bfac157dce771e4eb59b39a253e57abc8e Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Wed, 25 Mar 2020 18:58:30 +0000 Subject: [PATCH] brick: ignore tap_burst error On some OS tap_brurt cannot write in /etc/net/tun file. What make impossible to unlink vtep with another brick. Signed-off-by: Thiery Ouattara --- src/brick.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/brick.c b/src/brick.c index 01982af6a..eb27a5ea1 100644 --- a/src/brick.c +++ b/src/brick.c @@ -567,8 +567,11 @@ static void do_unlink(struct pg_brick *brick, enum pg_side side, uint16_t index, return; unlink_notify(pair_edge, pg_flip_side(side), errp); + + /* TODO: This error come from tap_bust. But the goal here is to */ + /* unlink brick. We will find the best way to ignore this error soon */ if (pg_error_is_set(errp)) - return; + *errp = NULL; pg_brick_decref(brick, errp);