X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/f8c61d2924ba0ede2754ca798b45c43cf75f292a..544d8ae78221ce603aad719ced275649a5ffd60d:/code/xen-ips diff --git a/code/xen-ips b/code/xen-ips index 0af6956..58f3078 100755 --- a/code/xen-ips +++ b/code/xen-ips @@ -37,9 +37,9 @@ def usage(): print >> sys.stderr, "USAGE: " + sys.argv[0] + " " def addip(ip): - n = database.NIC(machine_id=None, mac_addr=randomMAC(), ip=ip, hostname=None) - database.ctx.current.save(n) - database.ctx.current.flush() + n = database.NIC(machine=None, mac_addr=randomMAC(), ip=ip, hostname=None) + database.session.save(n) + database.session.flush() if __name__ == '__main__':