[ovs-dev] [PATCH 7/9] ovn-controller: Introduce "inject-pkt" ovs-appctl command.
Ben Pfaff
blp at ovn.org
Thu Jan 5 15:43:07 UTC 2017
On Wed, Jan 04, 2017 at 06:13:09PM -0800, Justin Pettit wrote:
> Add the ability to inject a packet into the connected Open vSwitch
> instance. This is primarily useful for testing when a test requires
> side-effects from an actual packet, so ovn-trace won't do.
>
> Signed-off-by: Justin Pettit <jpettit at ovn.org>
This looks quite useful. Thank you.
ofctrl_inject_packet() should check that rconn_get_version() does not
return -1, because that indicates that we can't encode or send a packet
right now.
At least in the long run we might want to break the pending_pkt handling
out of main() into help functions.
Acked-by: Ben Pfaff <blp at ovn.org>
More information about the dev
mailing list