networksegments table in neutron can not be cleared automatically
Bug #1807483 reported by
yeshen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
_process_
@db_api.
def clear_binding_
if host:
for l in (context.
To post a comment you must log in.
The revised method is as follows:
@db_api. context_ manager. writer levels( context, port_id, host): session. query(models. PortBindingLeve l).
filter_ by(port_ id=port_ id, host=host)): db.models. segment import NetworkSegment session. query(NetworkSe gment).
filter_ by(id=l. segment_ id, is_dynamic=1)):
context. session. delete( s)
context. session. delete( l)
LOG.debug( "For port %(port_id)s, host %(host)s, "
"cleared binding levels",
{'port_ id': port_id,
'host' : host})
def clear_binding_
if host:
for l in (context.
from neutron.
for s in (context.