summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ofproto/ofproto-dpif-xlate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 83e2b7a08..9b3a2f28a 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -3701,7 +3701,9 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port,
}
if (xport->peer) {
- ovs_assert(!truncate);
+ if (truncate) {
+ xlate_report_error(ctx, "Cannot truncate output to patch port");
+ }
patch_port_output(ctx, xport, xport->peer);
return;
}