Commit 95ca54e7 authored by Christopher Alfeld's avatar Christopher Alfeld

Fixed to match "new" database scheme.

parent 19ddb13d
tb_prerun("tbprerun",0);
# Check DB state.
@result = (
["link2","0","100","0.025","node4:2"],
["link2","0","100","0.025","node5:1"],
["link3","0","100","0.000","node6:0"],
["link3","0","100","0.000","node5:2"],
["lan2","25","100","0.000","node4:0"],
["lan2","25","100","0.000","node3:1"],
["link4","500","45","0.000","node6:1"],
["link4","500","45","0.000","node1:1"],
["lan3","50","100","0.000","node1:0"],
["lan3","50","100","0.000","node2:0"],
["lan3","50","100","0.000","node3:0"],
["link1","0","100","0.000","node4:1"],
["link1","0","100","0.000","node5:0"],
["link2","0.00","100000","0.025","node4:2"],
["link2","0.00","100000","0.025","node5:1"],
["link3","0.00","100000","0.000","node6:0"],
["link3","0.00","100000","0.000","node5:2"],
["lan2","25.00","100000","0.000","node4:0"],
["lan2","25.00","100000","0.000","node3:1"],
["link4","500.00","45000","0.000","node6:1"],
["link4","500.00","45000","0.000","node1:1"],
["lan3","50.00","100000","0.000","node1:0"],
["lan3","50.00","100000","0.000","node2:0"],
["lan3","50.00","100000","0.000","node3:0"],
["link1","0.00","100000","0.000","node4:1"],
["link1","0.00","100000","0.000","node5:0"],
);
tb_compare("SELECT vname,delay,bandwidth,lossrate,member from virt_lans" .
" where pid=\"testbed\" and eid=\"test\"",
......
tb_prerun("tbprerun",0);
@result = (
["l8","0","100","0.000","node4:0"],
["l8","0","100","0.000","node0:2"],
["lan11","0","100","0.000","s5:0"],
["lan11","0","100","0.000","s6:0"],
["lan11","0","100","0.000","node4:1"],
["link0","0","100","0.051","node0:1"],
["link0","0","100","0.051","node3:0"],
["lan0","100","20","0.400","node0:0"],
["lan0","150","30","0.000","node1:0"],
["lan0","0","100","0.106","node2:0"],
["l8","0.00","100000","0.000","node4:0"],
["l8","0.00","100000","0.000","node0:2"],
["lan11","0.00","100000","0.000","s5:0"],
["lan11","0.00","100000","0.000","s6:0"],
["lan11","0.00","100000","0.000","node4:1"],
["link0","0.00","100000","0.051","node0:1"],
["link0","0.00","100000","0.051","node3:0"],
["lan0","100.00","20000","0.400","node0:0"],
["lan0","150.00","30000","0.000","node1:0"],
["lan0","0.00","100000","0.106","node2:0"],
);
tb_compare("select vname,delay,bandwidth,lossrate,member from virt_lans" .
" where pid=\"testbed\" and eid=\"test\"",\@result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment