Commit d977ca3a authored by Christopher Alfeld's avatar Christopher Alfeld
Browse files

Added some stuff to keep the database correct. I.e. you have to set the

type for Control interface wire, and you need to specify the 'port' as
well as 'card' on interfaces (the default is usually wrong).
parent 77ead586
......@@ -55,13 +55,20 @@ C. What to do on boss:
----------------------
1. Insert entries into interfaces table using info from A(1). Try:
insert into interfaces (node_id,card,MAC,IP,iface) values
("pcN",0,"00b0d0f01020",NULL,"eth0")
insert into interfaces (node_id,card,port,MAC,IP,iface) values
("pcN",0,1,"00b0d0f01020",NULL,"eth0")
2. Insert entries into wires table using info from A(2). Try:
insert into wires (node_id1,card1,port1,node_id2,card2,port2) values
("pcN",0,1,"ciscoX",5,1)
For the control interface do:
insert into wires (type,node_id1,card1,port1,node_id2,card2,port2)
values ("Control","pcN",0,1,"ciscoX",5,1)
Check to make sure your cards and ports match up with what you
entered in the interfaces table.
3. Insert entry into outlets table, using info from A(3). Try:
insert into outlets (node_id, power_id, outlet) values
("pcN","powerX",Y)
......
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