1. 19 Jun, 2015 7 commits
    • 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
    • Leigh B Stoller's avatar
    • Leigh B Stoller's avatar
      For dataset images, do not return loadpart. For client version · 89f64eaa
      Leigh B Stoller authored
      >= 2, return lba size info.
      89f64eaa
  2. 17 Jun, 2015 4 commits
  3. 15 Jun, 2015 7 commits
  4. 12 Jun, 2015 5 commits
  5. 11 Jun, 2015 1 commit
  6. 10 Jun, 2015 8 commits
  7. 09 Jun, 2015 8 commits