Topology: Remove dispach by method name construction
Bug #1737339 reported by
Dima Kuznetsov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Topology looks for port event handler by:
1. extracting type of the port
2. creating handler name '_{type}_{action}'
3. checking if method exists.
Since there are not that many options, its nicer to dispatch them directly.
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/519322 /git.openstack. org/cgit/ openstack/ dragonflow/ commit/ ?id=adadf17948c 5a44433e58d22f7 f770d233f89a96
Committed: https:/
Submitter: Zuul
Branch: master
commit adadf17948c5a44 433e58d22f7f770 d233f89a96
Author: Dima Kuznetsov <email address hidden>
Date: Mon Nov 13 10:05:04 2017 +0200
Topology: move filtering to ovsdb monitor
Topology app keeps a local ovs port cache because it does not want all
port updates to take effect. In particular, events with missing data
(ofport, type). Moving this logic to vswitch_impl because it makes a lot
of sense to hold off those events even for apps that consume OvsPorts.
Partial-Bug: #1737339 277028cf6bce9c6 a0269e601af
Change-Id: I0bc8053d6fb3ed