1. 23 Jun, 2015 1 commit
  2. 19 Jun, 2015 8 commits
    • Leigh B Stoller's avatar
      New support for importing image backed datasets from other clusters. This · 613d90dd
      Leigh B Stoller authored
      is just like importing images (by using a url instead of a urn), which
      makes sense since image backed datasets are just images with a flag set.
      
      Key differences:
      
      1. You cannot snapshot a new version of the dataset on a cluster it has
         been imported to. The snapshot has to be done where the dataset was
         created initially. This is slightly inconvenient and will perhaps
         confuse users, but it is far less confusing that then datasets getting
         out of sync.
      
      2. No image versioning of datasets. We can add that later if we want to.
      613d90dd
    • Leigh B Stoller's avatar
      Support for stitch to Lan: · 6c1560d0
      Leigh B Stoller authored
      1. A trivial change in GeniCM; only look at the first two interfaces in the
         link if it references an external node. We already depend on the fact
         that the first two interfaces are in the same order as the two stitch
         points in the stitching section, so as long as we ignore external nodes
         after the second interface, setting up the virtual state for a lan works
         just peachy.
      
      2. libvtop_test: a bit less trivial, mostly cause of vlan tag pre
         reservation when stitching. When we encapsulate a lan we build another
         lans table entry that is linked. There is no need to do this when the
         encapsulation is vlan, and in fact I had changed links a long time ago
         to not do this, for the exact same reason. Lans are little bit more
         complicated but I think I got it.
      6c1560d0
    • Kirk Webb's avatar
    • Kirk Webb's avatar
    • Kirk Webb's avatar
      Fixes to make Comware OF support function correctly (squash commit). · b277d49a
      Kirk Webb authored
      Note: Since snmpit runs as the user, we don't rely on root's ssh keys
      for Netconf authentication.  The username and password to use can be
      encoded in the "community" field in the database (switch_stack_types, or
      overridden in switch_stacks):
      
        <community>[:<user>[:<pass>]]
      
      User/password default to:
      
        username: snmpit
        password: <community>
      b277d49a
    • Kirk Webb's avatar
      Install snmpit_libNetconf · 39bf502e
      Kirk Webb authored
      39bf502e
    • Kirk Webb's avatar
      Add OpenFlow support to HP Comware snmpit module (snmpit_h3c). · f6ff476d
      Kirk Webb authored
      This commit fills in all of the snmpit OF API calls for the Comware
      module.  Note that Comware doesn't support OF "listener" ports, such as
      are available on the Procurve/Provision switches.  Therefore, the
      functions related to listener ports return an error.
      
      It is assumed that when "disableOpenflow()" is called, that the caller
      also intends to destroy the related OpenFlow instance on the switch.
      There is no other call in the snmpit API for explicitly removing OF
      instances.
      f6ff476d
    • Kirk Webb's avatar
      Netconf-over-ssh library for snmpit. · 8bf81708
      Kirk Webb authored
      I don't know what I like most about this module, working with Expect or
      handling XML namespaces... Includes the basics of the Netconf protocol.
      Only tested with HP Netconf-over-ssh (Comware)!
      
      Main interface calls:
      
      $ncobj = snmpit_libNetconf->new($switch, $userpass, $port, $debuglvl)
      
      Create a new Netconf library object, pointed at switch host $switch.
      Username with optional password are passed as second argument (delimit
      with ':'). $port is port to connect to, and $debuglvl is the debugging
      level. Last two arguments are optional.
      
      $ncobj->doGet($filter)
      
      Execute Netconf "Get", with optional Netconf XML filter argument.
      
      $ncobj->doGetConfig($filter, $source)
      
      Get entire switch config, or partial config if $filter is supplied.
      $source is which config (running or saved).  Arguments are optional.
      
      $ncobj->doEditConfig($xmlconf, $target, $defop);
      
      Edit the switch's config.  $xmlconf is an XML::LibXML::Node object
      containing the XML-encoded configuration update. $target identifies what
      to apply it to (running or startup. Defaults to running). $defop is the
      default operation (merge, replace, none. Defaults to "merge").  Last two
      arguments are optional.
      
      $ncobj->doRPC($cmd, $xmlarg)
      
      Generic RPC dispatcher (Used by the other "do" commands above).  $cmd is
      the rpc command to execute. Optional $xmlarg parameter is an
      XML:LibXML::Node object that encodes the arguments to $cmd.
      8bf81708
  3. 10 Jun, 2015 1 commit
  4. 09 Jun, 2015 1 commit
  5. 22 May, 2015 1 commit
  6. 18 May, 2015 1 commit
  7. 15 May, 2015 2 commits
    • Kirk Webb's avatar
      Add custom module offset hack for snmpit_h3c (Comware) module · 0e672400
      Kirk Webb authored
      The hard-coded per-model offsets aren't always correct.  Need to deal
      with this in a different way, but this is a quick hack to move things along
      with the Utah stitcher aggregate.
      0e672400
    • Leigh B Stoller's avatar
      Directory based image paths. · 3a21f39e
      Leigh B Stoller authored
      Soon, we will have images with both full images and deltas, for the same
      image version. To make this possible, the image path will now be a
      directory instead of a file, and all of the versions (ndz,sig,sha1,delta)
      files will reside in the directory.
      
      A new config variable IMAGEDIRECTORIES turns this on, there is also a check
      for the ImageDiretories feature. This is applied only when a brand new
      image is created; a clone version of the image inherits the path it started
      with. Yes, you can have a mix of directory based and file based image
      descriptors.
      
      When it is time to convert all images over, there is a script called
      imagetodir that will go through all image descriptors, create the
      directory, move/rename all the files, and update the descriptors.
      Ultimately, we will not support file based image paths.
      
      I also added versioning to the image metadata descriptors so that going
      forward, old clients can handle a descriptor from a new server.
      3a21f39e
  8. 13 May, 2015 1 commit
  9. 06 May, 2015 4 commits
  10. 02 May, 2015 1 commit
  11. 01 May, 2015 2 commits
  12. 22 Apr, 2015 9 commits
  13. 16 Apr, 2015 2 commits
  14. 14 Apr, 2015 1 commit
  15. 10 Apr, 2015 2 commits
  16. 06 Apr, 2015 1 commit
  17. 01 Apr, 2015 1 commit
  18. 31 Mar, 2015 1 commit