def get_config_filename(sys, interface):
 interface = str(interface)
 if (interface not in sys.interfaces):
  return None
 if (sys.name == 'default'):
  return 'default'
 mac = sys.get_mac_address(interface)
 ip = sys.get_ip_address(interface)
 if ((mac is not None) and (mac != '')):
  return ('01-' + '-'.join(mac.split(':')).lower())
 elif ((ip is not None) and (ip != '')):
  return get_host_ip(ip)
 else:
  return sys.name

def get_config_filename ( sys , interface ) : interface = str ( interface ) if ( interface not in sys . interfaces ) : return None if ( sys . name == 'default' ) : return 'default' mac = sys . get_mac_address ( interface ) ip = sys . get_ip_address ( interface ) if ( ( mac is not None ) and ( mac != '' ) ) : return ( '01-' + '-' . join ( mac . split ( ':' ) ) . lower ( ) ) elif ( ( ip is not None ) and ( ip != '' ) ) : return get_host_ip ( ip ) else : return sys . name
the configuration file for each system pxe uses is either a form of the mac address of the hex version of the ip .