Last active
          August 29, 2015 14:08 
        
      - 
      
 - 
        
Save mjseeley/f6deacc8cbb5f5dfb655 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
mjseeley revised this gist
Dec 3, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ # Function/arguments: decmactohexmac(decmac) # Description: Convert Decimal MAC address to hex MAC address (123.123.123.123.123.123 -> 00AABBCCDDEE) # Returns: MAC address in hex format without delimiters  - 
        
mjseeley created this gist
Nov 6, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Function/arguments: decmactohexmac(decmac) # Description: Convert Decimal MAC address to hex MAC address (123.123.123.123.123.123 -> 00AABBCCDDEE) # Returns: MAC address in hex format without delimiters def decmactohexmac(decmac): # decmac = decmac.split(".") hexmac = ''.join(str(hex(int(i)).lstrip('0x')).zfill(2) for i in decmac).upper() return hexmac