ofp-actions: Let parse_UNROLL_XLATE return error message instead of aborting program
Currently, if unroll_xlate is passed to ovs-ofctl as one of actions,
let say 'ovs-ofctl add-flow br0 in_port=1,actions=unroll_xlate',
ovs-ofctl will crash. This patch fixes it by returning an error
message.
Reported-at:
@@ -5842,7 +5842,8 @@ static char * OVS_WARN_UNUSED_RESULT
parse_UNROLL_XLATE(char *arg OVS_UNUSED,
const struct ofpact_parse_params *pp OVS_UNUSED)
{
- OVS_NOT_REACHED();
+ return xasprintf("UNROLL is an internal action "
+ "that shouldn't be used via OpenFlow");
}
static void
