]> git.proxmox.com Git - mirror_ovs.git/commit
ovn-northd: Refactor logic for logical port 'up' state update
authorJakub Sitnicki <jkbs@redhat.com>
Fri, 29 Sep 2017 15:05:22 +0000 (17:05 +0200)
committerBen Pfaff <blp@ovn.org>
Tue, 28 Nov 2017 20:57:42 +0000 (12:57 -0800)
commit552ffa337dd2d9823ca32cd15cadac57a7c8ff45
tree3c59fd31c10bbfaad1a5ae5ad7085f0b78dfc16e
parenta9e6958101d082dbbdc096d01a803ab3a3eca549
ovn-northd: Refactor logic for logical port 'up' state update

No functional change.  Make it obvious that we determine the logical
port 'up' state by checking for bound chassis, and update the NB DB only
when state has not been set yet or current state is different.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mark Michelson <mmichels@redhat.com>
Acked-by: Miguel Angel Ajo <majopela@redhat.com>
ovn/northd/ovn-northd.c