/* SPDX-License-Identifier: BSD-2-Clause-Patent
 *
 * SPDX-FileCopyrightText: 2020 the prplMesh contributors (see AUTHORS.md)
 *
 * This code is subject to the terms of the BSD+Patent license.
 * See LICENSE file for more details.
 */

%define {
    select @DATAELEMENTS_ROOT_DM@.Network.AccessPoint {
        string SSID = "prplMesh";
        object Security {
            string PreSharedKey;
            string KeyPassphrase;
            string SAEPassphrase;

            string ModeEnabled {
                default "None";
                on action validate call check_enum [
                    "None",
                    "WPA2-Personal",
                    "WPA3-Personal",
                    "WPA3-Personal-Transition"
                ];
            }
        }
        string MultiApMode {
            default "Fronthaul";
            on action validate call check_enum [
                "Fronthaul",
                "Backhaul",
                "Fronthaul+Backhaul"
            ];
        }
        bool Band2_4G = false;
        bool Band5GL = false;
        bool Band5GH = false;
        bool Band6G = false;

        /*
        ** Name of the group this set of accesspoints belong to.
        */
        %read-only string X-PRPL_ORG_GroupName = "";
        /*
        ** Enabling/Disabling the AcceessPoint set.
        */
        bool Enable;

    }
}
