After the attachment is levied, the owner, or the master, agent, or consignee of the vessel may, in behalf of the owner, have the attachment discharged, upon filing with the court, subject to the provisions of CCP 489.060, an undertaking in an amount sufficient to satisfy the demand in the suit, besides costs. Upon receiving notice of the filing of the undertaking with the court, the sheriff, marshal, or constable shall restore to the owner, or the master, agent, or consignee of the owner, the vessel attached. (HNC 495.6)