lib/jobs/pdu-node-relations.js
function _adjustIpStrFormat(ipString) {
        var ip = ipString.split('.');
        ipString = '';
        for (var i = 0; i < ip.length; i += 1) {
            switch (ip[i].length) {
                case 1:
                    ip[i] = '00' + ip[i];
                    break;
                case 2:
                    ip[i] = '0' + ip[i];
                    break;
                default:
                    break;
            }
            ipString += ip[i];
        }
        return ipString.trim();
    }
function _adjustIpStrFormat(ipString) {
        var ip = ipString.split('.');
        ipString = '';
        for (var i = 0; i < ip.length; i += 1) {
            switch (ip[i].length) {
                case 1:
                    ip[i] = '00' + ip[i];
                    break;
                case 2:
                    ip[i] = '0' + ip[i];
                    break;
                default:
                    break;
            }
            ipString += ip[i];
        }
        return ipString.trim();
    }
function _adjustIpStrFormat ( ipString ) { var ip = ipString . split ( '.' ) ; ipString = '' ; for ( var i = 0 ; i < ip . length ; i += 1 ) { switch ( ip [ i ] . length ) { case 1 : ip [ i ] = '00' + ip [ i ] ; break ; case 2 : ip [ i ] = '0' + ip [ i ] ; break ; default : break ; } ipString += ip [ i ] ; } return ipString . trim ( ) ; }
Adjust ip Address format to 3 digits
return ip address string
Adjust ip Address format to 3 digits return ip address string