• Leigh Stoller's avatar
    Add an object definition to GeniHRN. I am getting tired of parsing URNs and · 4a27b0ce
    Leigh Stoller authored
    picking pieces out, so I added this:
    
      my $foo = GeniHRN->new("urn:publicid:IDN+emulab.net:testbed+slice+myexp3");
    
    and provides:
    
      $foo->domain();
      $foo->type();
      $foo->id();
      $foo->urn();
    
    and has a stringify method that returns the urn, so that existing code all
    works.
    
    The problem though is the XML::RPC and Frontier libraries provide no hooks
    to catch this, and rather then using a stringification, they both convert
    all blessed references into structs, and so anyplace that puts a urn into
    something to go out on the wire, has to be changed to force to the string.
    
    Damn, how disappointing! So all the code is here but basically disabled
    until I find time to go through all the code.
    4a27b0ce
Name
Last commit
Last update
..
etc Loading commit data...
flack Loading commit data...
install Loading commit data...
lib Loading commit data...
logo Loading commit data...
protogeniflash Loading commit data...
pubxmlrpc Loading commit data...
rspec-emulab Loading commit data...
rspec-geni @ a777efe9 Loading commit data...
scripts Loading commit data...
security Loading commit data...
test Loading commit data...
tutorial Loading commit data...
updates Loading commit data...
xmlrpc Loading commit data...
GNUmakefile.in Loading commit data...
LICENSE Loading commit data...
README Loading commit data...