Skip to content

Instantly share code, notes, and snippets.

View stulevine's full-sized avatar

Stu Levine stulevine

  • @wildcatproductions.com
  • Auburn Hills, MI
  • 21:46 (UTC -04:00)
View GitHub Profile
// grab report from device(s) using dm_virtualip module
$req = array(
'device_module' => 'dm_virtualip',
'function' => 'report',
'type' => 'loadbalancer',
'device' => $device,
'loadbalancer' => 'stingray.dev.voxel.net',
'virtualip' => '7925-4119-vserver',
'start' => $request['start'],
'end' => $request['end'],
function device_is_voxserver_compat($dev, $allow_custom = false)
{
if($dev['devtype_group_id'] != VOXSERVERS_DEVICE_GROUP_ID)
return false;
if($allow_custom)
return true;
$dev_config_id = $dev['metadata']['voxserver_sellable_config'];
//make sure $this->configs s initialize
<?php
/**
* A soap _client_ for accessing other apis
*
*/
namespace soap;
class Soap extends \core\LibBase {
$result = $this->uber->call(
'device.module_call',
array(
'device_id'=>$vip['device_id'],
'module_id'=>'virtualip',
'function'=>'edit',
array(
'editclick'=>1,
'loadbalancer'=>$lb_server,
'vip'=>$vserver_name