ovn-northd: Ensure that flows are added to correct types of datapaths.
authorBen Pfaff <blp@ovn.org>
Tue, 19 Jul 2016 16:07:13 +0000 (09:07 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 20 Jul 2016 03:10:03 +0000 (20:10 -0700)
commit9a9961d239bd5be010d52cd2bad3b9efbaf414ea
tree9cad6f9e54d14b2877fa611393e6ded8d9c972a7
parentdd23522f68ad5081b8816dc27bd0727ebe0d9576
ovn-northd: Ensure that flows are added to correct types of datapaths.

A DP_TYPE_SWITCH_* flow should only be added to a logical switch datapath,
and a DP_TYPE_ROUTER_* flow should only be added to a logical router
datapath, but the code previously did not verify this and it caused a
problem in practice.

Suggested-by: Guru Shetty <guru@ovn.org>
Suggested-at: http://openvswitch.org/pipermail/dev/2016-July/075557.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.c