Mikrotik Plugin: Internal error: name 'DropdownChoice' is not defined

Hi,

das Plugin ist noch nicht checkmk 2.2 kompatibel, es fehlen die Imports für die ValueSpecs.
Ändere die Imports in der Datei ~/local/share/check_mk/web/plugins/wato/mikrotik_register.py mal auf folgendes :

from cmk.gui.i18n import _

from cmk.gui.plugins.wato.utils import (
    HostRulespec,
    IndividualOrStoredPassword,
    monitoring_macro_help,
    RulespecGroup,
    rulespec_group_registry,
    rulespec_registry,
)

from cmk.gui.valuespec import (
    Dictionary,
    TextInput,
    DropdownChoice,
    Integer,
    ListChoice,
)

#
from cmk.gui.plugins.wato.special_agents.common import RulespecGroupDatasourceProgramsHardware

Zusätzlich dann TextAscii in TextInput ändern:

    elements = [
            ( "user",
                TextInput(
                    title       = _("Username"),
                    allow_empty = False,
                )