code: def has_netmask(interface_name):
      
      for interface in interfaces():
          if interface["name"] == interface_name:
              if interface["netmask"] and len(interface["netmask"]) > 0:
                  return True
              return False
      return False
docs: Checks if an interface has a netmask.
  
      :param interface: interface name
  
      :returns: boolean