- 30 Aug, 2017 3 commits
-
-
Leigh B Stoller authored
missing interface when its a Trunk link, these might not exist since they are hard to auto create.
-
Leigh B Stoller authored
from the interfaces table (and interface_state). The only place we will store that is the wires table. When looking up an interface, we were already loading the wires table, so we can still ask the interface for its card and port, *if* it is wired up. And if it is not wired up, asking the interface for anything related to the wire is nonsensical, so print a backtrace and return an error. Work in progress.
-
Leigh B Stoller authored
-
- 23 Aug, 2017 3 commits
-
-
Leigh B Stoller authored
-
Leigh B Stoller authored
-
Leigh B Stoller authored
-
- 18 Aug, 2017 2 commits
-
-
Leigh B Stoller authored
-
Leigh B Stoller authored
1. Beef up MakeFake in Interface/Wires and use that from Port library instead of existing fake stuff. 2. Add a Create routine for wires, remove all the direct insertions scattered around the code. 3. Add some Lookup routines, so we can remove a bunch of direct queries to the DB scattered around the code. 4. Add a trivial wrapper Interface::Type, and give it one useful function for now, to map generic speed to interface object.
-
- 14 Aug, 2017 1 commit
-
-
Leigh B Stoller authored
sanity checking on the interfaces and wires tables, creates interfaces for the switch side of all wires, as well as any other missing interfaces for wires. Eventually the primary key for the wires table will be node_id1,iface1,node_id2,iface2, but we are ways off from that. Not that wires between switches that do not have an existing for at least one side, are not handled yet since there is not enough information to generate the two missing interfaces. Have to think about that, but not a problem for now.
-
- 09 Aug, 2017 1 commit
-
-
Leigh B Stoller authored
1. We now allow lans to be implemented by a path. We did not allow this before, cause some of the sanity checking code was a pain to implement for lans. Well, no more sanity checking, the user is responsible for doing things correctly (after all, they are doing experiments with their own switches!). 2. We now allow topologies with more then one switch to be wired together. The wires between switches are marked as "trunk" wires, which informs the configuration generation code in libosload_switch to create the trunks and do the little tagged/untagged magic that is required on procurve switches. The same information is used to mark the the logical wires between switches as trunks. Aside: this stuff needs some work; we have spanning tree on by default, which causes the trunks to not work correctly. When I turn that off, things start working. So need some help from others who now about spanning tree stuff. 3. Serious kludging in the Interface and Port libraries related to choice of primary keys in the wires table. In order to insert a logical wire (or interface) that represents a connection setup by the apcon, we have to overload the primary key since the node_id1 side of the logical wires is the same as the physical wire to the apcon. We have to have overload the node_id2 side too, but that is really just a problem when wiring two switches together. Anyway, the kludge just maps card1 to a different id, and the Port library unmaps it. It will do for now, but really need logical wires to be done better then this.
-
- 01 Feb, 2017 1 commit
-
-
Leigh B Stoller authored
-
- 07 Jun, 2016 1 commit
-
-
Leigh B Stoller authored
for the most part that is all they are going to have. We still ignore them on physical nodes, since they refer to MLE interfaces.
-
- 22 Feb, 2016 1 commit
-
-
Leigh B Stoller authored
-
- 09 Aug, 2014 1 commit
-
-
Leigh B Stoller authored
-
- 06 Jun, 2014 1 commit
-
-
Leigh B Stoller authored
-
- 14 May, 2014 1 commit
-
-
Gary Wong authored
interface_type() should actually be called type(). Inadequate quoting in a SQL query. And assigning through a reference needs an extra '$'.
-
- 07 Apr, 2014 1 commit
-
-
Leigh B Stoller authored
-
- 30 Apr, 2013 1 commit
-
-
Leigh B Stoller authored
-
- 24 Sep, 2012 1 commit
-
-
Eric Eide authored
This commit is intended to makes the license status of Emulab and ProtoGENI source files more clear. It replaces license symbols like "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited blocks that contain actual license statements. This change was driven by the fact that today, most people acquire and track Emulab and ProtoGENI sources via git. Before the Emulab source code was kept in git, the Flux Research Group at the University of Utah would roll distributions by making tar files. As part of that process, the Flux Group would replace the license symbols in the source files with actual license statements. When the Flux Group moved to git, people outside of the group started to see the source files with the "unexpanded" symbols. This meant that people acquired source files without actual license statements in them. All the relevant files had Utah *copyright* statements in them, but without the expanded *license* state...
-
- 28 Aug, 2012 1 commit
-
-
Jonathon Duerig authored
-
- 27 Aug, 2012 1 commit
-
-
Leigh B Stoller authored
-
- 01 Aug, 2012 1 commit
-
-
Leigh B Stoller authored
missing.
-
- 30 Jul, 2012 1 commit
-
-
Jonathon Duerig authored
-
- 17 Jul, 2012 1 commit
-
-
Leigh B Stoller authored
-
- 17 May, 2012 1 commit
-
-
Leigh B Stoller authored
-
- 16 May, 2012 1 commit
-
-
Leigh B Stoller authored
devices with network interfaces. Emulab's spp and bbg nodes are examples, but I did all that by hand inserting sql. An spp node is a shared node with some interfaces. Users can allocate one or more of those interfaces and establish vlans to the interfaces. The node is a "fakenode" in "shared" mode, and everything else falls out. The mapper assigns virtual nodes until all of the interfaces are allocated, snmpit does its work on the interfaces, and the user then does the rest. Anyway, to added a special device: boss> wap addspecialdevice -s -t goober goober1 The -t argument is the name of the node type, created if it does not exists. The last argument is the name of the fakenode to create in the DB. The -s option says the special device is shared. Without -s, the device is allocated exclusively. Then to add interfaces to the device: boss> wap addspecialiface -b 1Gb -s cisco4,100,100 goober1 eth0 The -b option is the speed (either 100Mb or 1Gb). The -s option is the switch side of the interface (switchname,card,port). The last two arguments are the nodename and iface name for the interfaces table. After the interface and wires table entry are added to the DB, snmpit is called to put the switch port into tagged mode (if the node is shared). To skip the snmpit step, add the -t option.
-
- 03 May, 2012 1 commit
-
-
Leigh B Stoller authored
The basic operational model is as follows. * We turn the nodes on. * Since there is nothing on the disks, they will fall through to booting from the PXE and will boot the newnode MFS. They all check in. * We run Jon's script that adds the nodes. They are now in hwdown, still nothing on the disks. * We run my script, which is driven from a datafile we are supposed to get from HP. This script has the ilomac, ilopswd, control mac. I will add another column initially; the permanent IP to assign to the ilo. This script does: + Reads the datafile to get all the stuff. + Reads the dhcpd.leases file to find the temporary IPs of the ilos. + Finds the corresponding nodes in the DB. + Sends over an XML file that does the following: - Add the elabman user. - Add local root's dsa pub key to the new elabman user. - Add Utah's root dsa key to the Administrator user - Sets the power on mode to auto (so that the node turns on!). - Sets the idle timeout to 2 hours. + Sets the bootorder so that PXE is first. This has to be done with ssh and some expect stuff I culled from power_ilo. Sigh. + Calls out to another script that adds the ilo interface to the DB (this is the management_iface script I did last month). + Sends another XML file that tells the ilo to reset itself, so that it picks up its permanent IP address. * Now we can free the nodes from hwdown.
-
- 09 Apr, 2012 1 commit
-
-
Leigh B Stoller authored
-
- 27 Mar, 2012 2 commits
-
-
Leigh B Stoller authored
-
Leigh B Stoller authored
node.
-
- 28 Sep, 2011 1 commit
-
-
Leigh B Stoller authored
part of an upcoming change to make Trunk links explicit in the DB.
-
- 20 Sep, 2011 1 commit
-
-
Jonathon Duerig authored
Basic link lookup and interface lookup is complete. Need to finish bandwidth calculations, link types, wireless links, and interface printing.
-
- 12 May, 2011 1 commit
-
-
Leigh B Stoller authored
-
- 11 May, 2011 1 commit
-
-
Leigh B Stoller authored
-
- 05 May, 2011 2 commits
-
-
Leigh B Stoller authored
Add "Unused" to type enum in the wires table. Change a few critical wires/interfaces queries to avoid logical=1.
-
Leigh B Stoller authored
-
- 22 Jul, 2010 1 commit
-
-
Leigh B Stoller authored
attempts by protogeni code.
-
- 26 Feb, 2010 1 commit
-
-
Leigh B Stoller authored
node info. Not sure this will survive. Add routines to update as well. Also add Update and Refresh routines. Export VMAC for virtual interfaces as for cooked mode.
-
- 23 Feb, 2010 1 commit
-
-
Leigh B Stoller authored
-
- 12 Jan, 2010 1 commit
-
-
Leigh B. Stoller authored
-