Example #1
0
def database_add():
#[JPC] refactor routine
    ed = EADatabase()
    ed.simple_db_test()

    snapshot = RancidSnapshotManager()

    dev_snap = snapshot.get_snapshot_single(sys.argv[2])
    ed.insert_dev_file(last_id, dev_snap, sys.argv[3])
Example #2
0
def database_add():
    #[JPC] refactor routine
    ed = EADatabase()
    ed.simple_db_test()

    snapshot = RancidSnapshotManager()

    dev_snap = snapshot.get_snapshot_single(sys.argv[2])
    ed.insert_dev_file(last_id, dev_snap, sys.argv[3])
Example #3
0
def file_add():
#File add
    ea_write = open('snap.dat','a')
    em = EAMeasurement()
#ed.simple_db_test()

    snapshot = RancidSnapshotManager("")
    dev_snap = snapshot.get_snapshot_single(sys.argv[2])
    em.write_measurement(ea_write, dev_snap, sys.argv[3])
    ea_write.close()
Example #4
0
def file_add():
    #File add
    ea_write = open('snap.dat', 'a')
    em = EAMeasurement()
    #ed.simple_db_test()

    snapshot = RancidSnapshotManager("")
    dev_snap = snapshot.get_snapshot_single(sys.argv[2])
    em.write_measurement(ea_write, dev_snap, sys.argv[3])
    ea_write.close()