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 25, 2020
1 parent 1ef931a commit 9b80273
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/brick.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,15 @@ 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);
if (pg_error_is_set(errp))
return;
if (pg_error_is_set(errp)) {
if (!strcmp((*errp)->context.file, "src/tap.c") &&
!strcmp((*errp)->context.function, "tap_burst")) {
pg_error_print(*errp);
*errp = NULL;
} else {
return;
}
}

pg_brick_decref(brick, errp);

Expand Down

0 comments on commit 9b80273

Please sign in to comment.