Browse Source

Use TYPE_FLAT constant from neutron-lib

Launch of an instance fails with:
"AttributeError: 'module' object has no attribute 'TYPE_FLAT'"

Patch [1] removed the constant as it's now present in neutron-lib. Need to use
it from there.

[1] 95f1e03446

Change-Id: I478d057e7cac4749434933c87964a013ce8d31da
Andreas Scheuring 1 year ago
parent
commit
5e5d7b85a1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      networking_dpm/ml2/mech_dpm.py

+ 1
- 1
networking_dpm/ml2/mech_dpm.py View File

@@ -15,9 +15,9 @@
15 15
 #    under the License.
16 16
 
17 17
 from neutron_lib.api.definitions import portbindings
18
+from neutron_lib import constants as p_constants
18 19
 from oslo_log import log
19 20
 
20
-from neutron.plugins.common import constants as p_constants
21 21
 from neutron.plugins.ml2 import driver_api as api
22 22
 from neutron.plugins.ml2.drivers import mech_agent
23 23
 

Loading…
Cancel
Save