def register(vmname, cuckoo, tags): session = Session() snapshot = session.query(Snapshot).filter_by(vmname=vmname).first() if not snapshot: log.error("Snapshot not found: %s", vmname) exit(1) # TODO Add snapshot.port & snapshot.adapter to the configuration. # But those options will require various changes in Cuckoo as well. register_cuckoo(snapshot.ipaddr, tags, vmname, cuckoo)
def register(vmname, cuckoo, tags): session = Session() snapshot = session.query(Snapshot).filter_by(vmname=vmname).first() if not snapshot: log.error("Snapshot not found: %s", vmname) exit(1) # TODO Add snapshot.port & snapshot.adapter to the configuration. # But those options will require various changes in Cuckoo as well. register_cuckoo(snapshot.ipaddr, tags, vmname, cuckoo)