Side note: for QoS support, we expose rule_types API that reflect supported rule types and depends on what plugins report back, and for ml2, it's a common subset of all rule types supported by each of ml2 drivers: https://git.openstack.org/cgit/openstack/neutron/tree/neutron/plugins/ml2/managers.py#n317
The fix for the bug could do something similar.
Side note: for QoS support, we expose rule_types API that reflect supported rule types and depends on what plugins report back, and for ml2, it's a common subset of all rule types supported by each of ml2 drivers: https:/ /git.openstack. org/cgit/ openstack/ neutron/ tree/neutron/ plugins/ ml2/managers. py#n317
The fix for the bug could do something similar.