Skip to content

Commit

Permalink
brick: ignore tap_burst error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
outscale-toa committed Mar 26, 2020
1 parent c68feaa commit 7ca221b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/brick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7ca221b

Please sign in to comment.