prevent OVS + LB plugins from clearing device_id and device_owner

bug 1041669

the fact that these plugins ever cleared this field is probably just a
misunderstanding of how the field is supposed to be used, as I don't think
it ever makes sense for the L2 plugin logic to change this field.

Change-Id: Ie9579e2f88d322cfdce51a2ca126f4dfab680022
This commit is contained in:
Dan Wendlandt 2012-08-25 14:59:33 -07:00
parent e0b0bfbea4
commit 4305bd1a9c
2 changed files with 0 additions and 6 deletions

View File

@ -188,9 +188,6 @@ def set_port_status(port_id, status):
try:
port = session.query(models_v2.Port).filter_by(id=port_id).one()
port['status'] = status
if status == constants.PORT_STATUS_DOWN:
port['device_id'] = ''
port['device_owner'] = ''
session.merge(port)
session.flush()
except exc.NoResultFound:

View File

@ -186,9 +186,6 @@ def set_port_status(port_id, status):
try:
port = session.query(models_v2.Port).filter_by(id=port_id).one()
port['status'] = status
if status == constants.PORT_STATUS_DOWN:
port['device_id'] = ''
port['device_owner'] = ''
session.merge(port)
session.flush()
except exc.NoResultFound: