Function

NM-1.0NMutils_iface_valid_nameDeprecated 1.6

  • Validate the network interface name.

    Parameters

    • OptionalDeprecatedname: string

      Name of interface

    Returns boolean

    true if interface name is valid, otherwise false is returned. Before 1.20, this function did not accept null as name argument. If you want to run against older versions of libnm, don't pass null.

    since 1.6: Use nm_utils_is_valid_iface_name() instead, with better error reporting.