Skip to content

Instantly share code, notes, and snippets.

View ricksalsa's full-sized avatar

Rick Salsa ricksalsa

View GitHub Profile
@ricksalsa
ricksalsa / gears_sideband.tcl
Last active August 29, 2015 14:20
This iRule is applied to the sideband virtual connecting to the Gears REST API
#############################################################
## APM OPSWAT Gears API Connector
## Version: 1.0
#
# Applies to an internal VIP for use by the APM OPSWAT Gears
# Support iRule. The IP does not need to be routable. This
# VIP is intended to apply SSL to the Gears sideband
# connection only.
#
# This rule will only accept HTTP connections outbound to the
@ricksalsa
ricksalsa / apm_gears_cloud_api.tcl
Last active August 29, 2015 14:20
This iRule is applied to the APM virtual to obtain an OAuth token and do a simple device status check based on Mac Address
#####################################################################
## APM OPSWAT Gears REST API Device Status Check
## Version: 1.0
#
# Applies to an APM VIP to enable collection of a mobile device's
# status from OPSWAT Gears into the APM session database.
#--------------------------------------------------------------------
when RULE_INIT {
/Users/rick/RubymineProjects/test/spec/models/deals_spec.rb:7:in `block (2 levels) in <top (required)>': undefined local variable or method `be_valid' for #<Class:0x00000102c6e820> (NameError)
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:131:in `module_eval'
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:131:in `subclass'
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:118:in `describe'
from /Users/rick/RubymineProjects/test/spec/models/deals_spec.rb:6:in `block in <top (required)>'
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:131:in `module_eval'
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:131:in `subclass'
from /Users/rick/.rvm/gems/ruby-1.9.2-p0@test/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:118:in `describe'
from /Users