function updateLoadBalancerCB(request, appData, callback) {
    logutils.logger.debug('updateLoadBalancer');
    var lbId = request.param('uuid');
    var lbPutData = request.body;
    var lbPutURL = '/loadbalancer/';
    if (!('loadbalancer' in lbPutData)
            || (!('uuid' in lbPutData['loadbalancer']))) {
        error = new appErrors.RESTServerError(
                'loadbalancer object or its uuid missing ');
        callback(error, lbPutData);
        return;
    }
    var lbUUID = lbPutData['loadbalancer']['uuid'];
    if (lbId != lbUUID) {
        error = new appErrors.RESTServerError(
                'loadbalancer Id and listener Object uuid mismatch ');
        callback(error, lbPutData);
        return;
    }
    lbPutURL += lbUUID;
    lbPutData = removeLoadBalancerBackRefs(lbPutData);
    lbPutData = removeLoadBalancerRefs(lbPutData);
    jsonDiff.getConfigDiffAndMakeCall(lbPutURL, appData, lbPutData, function(
            locError, data) {
        error = appendMessage(locError, locError);
        callback(error, data);
    });
}
/**
 * @updateLoadBalancerCB private function 1. Callback for LoadBalancer update
 *                       operations 2. Send a call to Update the LoadBalancer
 *                       diff
 */
@updateLoadBalancerCB private function 1. Callback for LoadBalancer update
operations 2. Send a call to Update the LoadBalancer
diff
@updateLoadBalancerCB private function 1 . Callback for LoadBalancer update operations 2 . Send a call to Update the LoadBalancer diff
function updateLoadBalancerCB(request, appData, callback) {
    logutils.logger.debug('updateLoadBalancer');
    var lbId = request.param('uuid');
    var lbPutData = request.body;
    var lbPutURL = '/loadbalancer/';
    if (!('loadbalancer' in lbPutData)
            || (!('uuid' in lbPutData['loadbalancer']))) {
        error = new appErrors.RESTServerError(
                'loadbalancer object or its uuid missing ');
        callback(error, lbPutData);
        return;
    }
    var lbUUID = lbPutData['loadbalancer']['uuid'];
    if (lbId != lbUUID) {
        error = new appErrors.RESTServerError(
                'loadbalancer Id and listener Object uuid mismatch ');
        callback(error, lbPutData);
        return;
    }
    lbPutURL += lbUUID;
    lbPutData = removeLoadBalancerBackRefs(lbPutData);
    lbPutData = removeLoadBalancerRefs(lbPutData);
    jsonDiff.getConfigDiffAndMakeCall(lbPutURL, appData, lbPutData, function(
            locError, data) {
        error = appendMessage(locError, locError);
        callback(error, data);
    });
}
function updateLoadBalancerCB ( request , appData , callback ) { logutils . logger . debug ( 'updateLoadBalancer' ) ; var lbId = request . param ( 'uuid' ) ; var lbPutData = request . body ; var lbPutURL = '/loadbalancer/' ; if ( ! ( 'loadbalancer' in lbPutData ) || ( ! ( 'uuid' in lbPutData [ 'loadbalancer' ] ) ) ) { error = new appErrors . RESTServerError ( 'loadbalancer object or its uuid missing ' ) ; callback ( error , lbPutData ) ; return ; } var lbUUID = lbPutData [ 'loadbalancer' ] [ 'uuid' ] ; if ( lbId != lbUUID ) { error = new appErrors . RESTServerError ( 'loadbalancer Id and listener Object uuid mismatch ' ) ; callback ( error , lbPutData ) ; return ; } lbPutURL += lbUUID ; lbPutData = removeLoadBalancerBackRefs ( lbPutData ) ; lbPutData = removeLoadBalancerRefs ( lbPutData ) ; jsonDiff . getConfigDiffAndMakeCall ( lbPutURL , appData , lbPutData , function ( locError , data ) { error = appendMessage ( locError , locError ) ; callback ( error , data ) ; } ) ; }
@updateLoadBalancerCB private function 1.
@updateLoadBalancerCB private function 1 .