ovn-nbd: Match bindings on lport name.
authorRussell Bryant <rbryant@redhat.com>
Wed, 15 Apr 2015 01:52:52 +0000 (21:52 -0400)
committerBen Pfaff <blp@nicira.com>
Thu, 16 Apr 2015 17:52:07 +0000 (10:52 -0700)
commitfc3113bcb8ff07ae97d2f22150454f723849d675
tree0b939c263aaa86d43a555bfc22c5d4abbf598592
parentf386a8a7583f3ecc967dab124298fe4bc576324e
ovn-nbd: Match bindings on lport name.

When ovn-nbd is looking through bindings to figure out if any logical
ports in the northbound DB need to have their 'up' state changed, it
should be using the logical port's name instead of UUID for matching
up to rows in the OVN db.

The switch to using the name instead of UUID means we don't have a
quick lookup so we use the same approach that's used for handling
updates in the other direction.  We start by hashing all of the
logical ports by name.  As we iterate through the bindings, we can
then look up ports by name quickly.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovn/ovn-nbd.c