lib/jobs/switch-node-relations.js
function _adjustMacStrFormat(macString) {
        macString = macString.toLowerCase();
        var mac = macString.split(':');
        macString = '';
        for (var i = 0; i < mac.length; i += 1) {
            if (mac[i].length === 1) {
                mac[i] = '0' + mac[i];
            }
            macString += mac[i];
        }
        return macString;
    }
function _adjustMacStrFormat(macString) {
        macString = macString.toLowerCase();
        var mac = macString.split(':');
        macString = '';
        for (var i = 0; i < mac.length; i += 1) {
            if (mac[i].length === 1) {
                mac[i] = '0' + mac[i];
            }
            macString += mac[i];
        }
        return macString;
    }
function _adjustMacStrFormat ( macString ) { macString = macString . toLowerCase ( ) ; var mac = macString . split ( ':' ) ; macString = '' ; for ( var i = 0 ; i < mac . length ; i += 1 ) { if ( mac [ i ] . length === 1 ) { mac [ i ] = '0' + mac [ i ] ; } macString += mac [ i ] ; } return macString ; }
Adjust mac Address format to 2 hex digits
return mac address string
Adjust mac Address format to 2 hex digits return mac address string