function createVirtualRouters (request, response, appData)
{
     var postData     =  request.body;
     updateIPAMs(postData,appData, response, function(){
         configApiServer.apiPost('/virtual-routers', postData, appData,
                 function(error, data) {
                    if(error) {
                        commonUtils.handleJSONResponse(error, response, null);
                        return;
                    }
                    getVirtualRouters(request, response, appData);
                 });
     });
}
/**
 * @createVirtualRouters
 * public function
 * 1. URL /api/tenants/config/virtual-routers/
 * 2. creats  a virtual router in config api server
 */
@createVirtualRouters
public function
1. URL /api/tenants/config/virtual-routers
2. creats  a virtual router in config api server
@createVirtualRouters public function 1 . URL / api / tenants / config / virtual - routers 2 . creats a virtual router in config api server
function createVirtualRouters (request, response, appData)
{
     var postData     =  request.body;
     updateIPAMs(postData,appData, response, function(){
         configApiServer.apiPost('/virtual-routers', postData, appData,
                 function(error, data) {
                    if(error) {
                        commonUtils.handleJSONResponse(error, response, null);
                        return;
                    }
                    getVirtualRouters(request, response, appData);
                 });
     });
}
function createVirtualRouters ( request , response , appData ) { var postData = request . body ; updateIPAMs ( postData , appData , response , function ( ) { configApiServer . apiPost ( '/virtual-routers' , postData , appData , function ( error , data ) { if ( error ) { commonUtils . handleJSONResponse ( error , response , null ) ; return ; } getVirtualRouters ( request , response , appData ) ; } ) ; } ) ; }
@createVirtualRouters
 public function
 1.
@createVirtualRouters public function 1 .