Fix deprecation warnings for FormatChecker
Fix deprecation warnings for our own format checkers.
See: https://gitlab.nic.cz/turris/foris-controller/foris-controller/-/jobs/862656#L456
foris_schema/custom_format_checkers.py:29: DeprecationWarning: FormatChecker.cls_checks is deprecated. Call FormatChecker.checks on a specific FormatChecker instance instead.
@FormatChecker.cls_checks("ipv4netmask", (socket.error, TypeError))
foris_schema/custom_format_checkers.py:40: DeprecationWarning: FormatChecker.cls_checks is deprecated. Call FormatChecker.checks on a specific FormatChecker instance instead.
@FormatChecker.cls_checks("ipv4prefix", (socket.error, ValueError, AttributeError))
foris_schema/custom_format_checkers.py:47: DeprecationWarning: FormatChecker.cls_checks is deprecated. Call FormatChecker.checks on a specific FormatChecker instance instead.
@FormatChecker.cls_checks("ipv6prefix", (socket.error, ValueError, AttributeError))
foris_schema/custom_format_checkers.py:54: DeprecationWarning: FormatChecker.cls_checks is deprecated. Call FormatChecker.checks on a specific FormatChecker instance instead.
@FormatChecker.cls_checks("macaddress", (ValueError, TypeError))