def METHOD_NAME(network_profile, pod_identity_profile, customer_consent):
    if not network_profile or not network_profile.network_plugin:
        # invalid data
        return
    if network_profile.network_plugin.lower() != 'kubenet':
        # not kubenet, no need to check
        return
    if customer_consent is None:
        # no set this time, read from previous value
        customer_consent = bool(
            pod_identity_profile.allow_network_plugin_kubenet)
    if not customer_consent:
        raise CLIError(
            "--enable-pod-identity-with-kubenet is required for "
            "enabling pod identity addon when using Kubenet network plugin")
    pod_identity_profile.allow_network_plugin_kubenet = True