Remove Monkey patch
Change-Id: Ic89dc4ccc174effe923e4e4db1d484990afb8141
This commit is contained in:
parent
f9c7a63f7a
commit
751d1ca08b
@ -57,23 +57,3 @@ from oslo_db.sqlalchemy import exc_filters
|
|||||||
|
|
||||||
|
|
||||||
exc_filters.LOG.exception = exc_filters.LOG.debug
|
exc_filters.LOG.exception = exc_filters.LOG.debug
|
||||||
|
|
||||||
|
|
||||||
from neutron.db import db_base_plugin_v2 as db_v2
|
|
||||||
|
|
||||||
|
|
||||||
patched_create_network_db = db_v2.NeutronDbPluginV2.create_network_db
|
|
||||||
|
|
||||||
|
|
||||||
# REVISIT: this is a monkey patch of the upstream DB layer call.
|
|
||||||
# https://review.opendev.org/#/c/679399/ set the default value
|
|
||||||
# for the network's MTU to the constant defined in neutron-lib, if
|
|
||||||
# one wasn't specified. This modifies that behavior by explicitly
|
|
||||||
# setting it to 0, if not set already, avoiding this behavior.
|
|
||||||
def create_network_db(self, context, network):
|
|
||||||
n = network['network']
|
|
||||||
n.update({'mtu': n.get('mtu', 0)})
|
|
||||||
return patched_create_network_db(self, context, network)
|
|
||||||
|
|
||||||
|
|
||||||
db_v2.NeutronDbPluginV2.create_network_db = create_network_db
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# The order of packages is significant, because pip processes them in the order
|
# The order of packages is significant, because pip processes them in the order
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
neutron>=20.3.1
|
||||||
pbr>=4.0.0 # Apache-2.0
|
pbr>=4.0.0 # Apache-2.0
|
||||||
pyOpenSSL>=16.2.0
|
pyOpenSSL>=16.2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user