get_local_ports_to_ofport_mapping will be called when process port.
It will return all information of chassises and logical ports in
current node. However, only one chassis or one port will be used.
When the topology is huge, for example, thousands of chassises and ports,
it will be time/resource consuming to call the method.
This patch makes the method just return the wanted information.
Reviewed: https:/ /review. openstack. org/378413 /git.openstack. org/cgit/ openstack/ dragonflow/ commit/ ?id=70020c87dee 775e693a7e73609 fb4e715a333a12
Committed: https:/
Submitter: Jenkins
Branch: master
commit 70020c87dee775e 693a7e73609fb4e 715a333a12
Author: Hong Hui Xiao <email address hidden>
Date: Wed Sep 28 15:29:12 2016 +0800
Optimize get_local_ ports_to_ ofport_ mapping
get_ local_ports_ to_ofport_ mapping will be called when process port.
It will return all information of chassises and logical ports in
current node. However, only one chassis or one port will be used.
When the topology is huge, for example, thousands of chassises and ports,
it will be time/resource consuming to call the method.
This patch makes the method just return the wanted information.
Related-Bug: #1622879
Change-Id: Ifb51575de444fa 28e48a6330debdb 72ba37a565c