ovn-northd: Only peer router ports to other router ports.
authorBen Pfaff <blp@ovn.org>
Tue, 19 Jul 2016 15:36:35 +0000 (08:36 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Jul 2016 18:12:02 +0000 (11:12 -0700)
commitad386c3f31fea7c0e2e2bc91b0cd370132208811
treea24b596d54fd4d692d9a2087280ec282346f66bc
parent64839cf4325198e6ba845de72efd7c7a726c62a1
ovn-northd: Only peer router ports to other router ports.

A router port's "peer", if set, must point to another router port, but the
code as written also accepted switch ports.  This caused problems when
switch ports were actually specified.

Reported-by: Gurucharan Shetty <guru@ovn.org>
Reported-at: http://openvswitch.org/pipermail/dev/2016-July/075524.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Gurucharan Shetty <guru@ovn.org>
ovn/northd/ovn-northd.c