Module: PxnxJruby

Defined in:
lib/pxnx_jruby.rb,
lib/pxnx_jruby/version.rb,
lib/pxnx_jruby/connection.rb,
lib/pxnx_jruby/eps_broker.rb,
lib/pxnx_jruby/connection_manager.rb,
lib/pxnx_jruby/nexpose_connection.rb,
lib/pxnx_jruby/utilities/nx_logger.rb,
lib/pxnx_jruby/session_directory_notification.rb

Overview

Implements Cisco pxGrid Node to scan IPs connecting to the network.

Defined Under Namespace

Classes: Connection, ConnectionManager, EpsBroker, NexposeConnection, NxLogger, SessionDirectoryNotification

Constant Summary collapse

PRODUCT =
'pxGrid'
VENDOR =
'Cisco'
VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.create_connection(connection_parameters = {}) ⇒ Object

Create a connection to the pxGrid Controller.



61
62
63
# File 'lib/pxnx_jruby.rb', line 61

def self.create_connection(connection_parameters = {})
  Connection.new(connection_parameters)
end

.random_ipObject

Generates a random 10.x.x.x IP Address for simulation/testing.



66
67
68
69
# File 'lib/pxnx_jruby.rb', line 66

def self.random_ip
  ip = IPAddr.new(10 * 2**24 + rand(2**24), Socket::AF_INET)
  ip.to_s
end