def _update_ports(self, context, router_id): objs = l3_obj.RouterPort.get_objects( context, router_id=[router_id]) for obj in objs: port_id = obj.port_id self._core_plugin.update_port( context, port_id, {'port': {'status': 'DOWN'}})
not sure if this would this be a good solution or not but that's what I think may fix the issue if we add this helper and call it in method at https://github.com/openstack/neutron/blob/master/neutron/db/l3_db.py#L277
if r['admin_state_up'] == False: self._update_ports(context, id)
def _update_ports(self, context, router_id): RouterPort. get_objects( id=[router_ id])
self._ core_plugin. update_ port(
context, port_id, {'port': {'status': 'DOWN'}})
objs = l3_obj.
context, router_
for obj in objs:
port_id = obj.port_id
not sure if this would this be a good solution or not but that's what I think may fix the issue if we add this helper and call it in method at https:/ /github. com/openstack/ neutron/ blob/master/ neutron/ db/l3_db. py#L277
if r['admin_state_up'] == False: _update_ ports(context, id)
self.