Beispiel #1
0
 /**
  * Wrapper for configuring CARP interfaces
  *
  * @param string $username
  * @param string $password
  *
  * @return bool
  */
 public function interfaces_carp_configure($username, $password)
 {
     $this->auth($username, $password);
     if ($this->loop_detected) {
         log_error("Disallowing CARP sync loop");
         return true;
     }
     interfaces_vips_configure();
     return true;
 }
Beispiel #2
0
function interfaces_carp_configure_xmlrpc($raw_params)
{
    global $xmlrpc_g;
    if (xmlrpc_loop_detect()) {
        log_error("Disallowing CARP sync loop");
        return;
    }
    $params = xmlrpc_params_to_php($raw_params);
    if (!xmlrpc_auth($params)) {
        xmlrpc_authfail();
        return $xmlrpc_g['return']['authfail'];
    }
    interfaces_vips_configure();
    return $xmlrpc_g['return']['true'];
}
Beispiel #3
0
function interfaces_carp_configure_xmlrpc($raw_params)
{
    global $xmlrpc_g;
    $params = xmlrpc_params_to_php($raw_params);
    if (!xmlrpc_auth($params)) {
        xmlrpc_authfail();
        return $xmlrpc_g['return']['authfail'];
    }
    interfaces_vips_configure();
    return $xmlrpc_g['return']['true'];
}