'Update the model to support the dvr case of a router.'

def _migrate_router_ports(self, context, router_db, old_owner, new_owner):

    for rp in router_db.attached_ports.filter_by(port_type=old_owner):
        rp.port_type = new_owner
        rp.port.device_owner = new_owner
