<model>
    <mount>//hasync</mount>
    <migration_prefix>MHA</migration_prefix>
    <version>1.0.2</version>
    <description>HA sync</description>
    <items>
        <disablepreempt type="BooleanField">
            <Default>0</Default>
            <Required>Y</Required>
        </disablepreempt>
        <disconnectppps type="BooleanField">
            <Default>0</Default>
            <Required>Y</Required>
        </disconnectppps>
        <pfsyncinterface type="InterfaceField">
            <AllowDynamic>Y</AllowDynamic>
            <BlankDesc>Disabled</BlankDesc>
            <filters>
                <virtual>/^(?!1).*$/</virtual>
            </filters>
        </pfsyncinterface>
        <pfsyncpeerip type="NetworkField">
            <NetMaskAllowed>N</NetMaskAllowed>
        </pfsyncpeerip>
        <pfsyncversion type="OptionField">
            <Required>Y</Required>
            <Default>1400</Default>
            <OptionValues>
                <v1301 value='1301'>OPNsense 24.1[.x] or below</v1301>
                <v1400 value='1400'>OPNsense 24.7 or above</v1400>
            </OptionValues>
        </pfsyncversion>
        <synchronizetoip type="TextField"/>  <!-- XXX: accepts uri or address -->
        <verifypeer type="BooleanField">
            <Default>0</Default>
            <Required>Y</Required>
        </verifypeer>
        <username type="TextField"/>
        <password type="TextField"/>  <!-- XXX -->
        <syncitems type="JsonKeyValueStoreField">
            <Multiple>Y</Multiple>
            <ConfigdPopulateAct>system ha options</ConfigdPopulateAct>
            <SortByValue>Y</SortByValue>
            <ValidationMessage>Specify valid list of applications to sync.</ValidationMessage>
        </syncitems>
    </items>
</model>
