def iphexval(ip):
 a = ip.split('.')
 hexval = ''
 for val in a:
  hexval = ''.join([hexval, hex(int(val))[2:].zfill(2)])
 return hexval.upper()

def iphexval ( ip ) : a = ip . split ( '.' ) hexval = '' for val in a : hexval = '' . join ( [ hexval , hex ( int ( val ) ) [ 2 : ] . zfill ( 2 ) ] ) return hexval . upper ( )
retrieve the interface name from a specific cidr .