patch: Allow client to determine port names.
authorBen Pfaff <blp@nicira.com>
Fri, 16 Oct 2015 20:36:46 +0000 (13:36 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 17 Oct 2015 06:52:40 +0000 (23:52 -0700)
commite51d619c27effc3f9b40c510c78eec44681b6077
tree61745da66529a4e8f20d2cdb980bbe332f2378fa
parent58bcc67cd136bd1734d108c50b2f91c530d2cb1b
patch: Allow client to determine port names.

Calculating the patch port names from the bridge names makes sense when
there's only one pair of patch ports between a pair of bridges, but that
won't be the case for an upcoming use of patch ports.

This changes makes it easy to check for existing patch ports in
create_patch_port(), instead of in its caller, and since that seems like a
more sensible place this change also moves it there.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/controller/patch.c