{
    "$id": "http://joergmittaglawo.github.io/DMV-Configuration/schema/ptp.schema.json",
    "$schema": "https://json-schema.org/draft-07/schema",
    "title": "The PTP configuration",
    "description": "The PTP configuration, including PTP Domain",
    "type": "object",
    "additionalProperties": true,
    "properties": {
        "domain": {
            "description": "The PTP Domain",
            "type": "integer",
            "default": 127,
            "minimum": 0,
            "maximum": 127
        },
        "hybrid": {
            "description": "Whether to use Hybrid PTP (Delay-Requests are sent as Unicast) or pure Multicast",
            "default": false,
            "type": "boolean"
        },
        "redundant": {
            "description": "Whether to use two PTPFlow Agents on the two 40G ports for redundancy",
            "default": false,
            "type": "boolean"
        },
        "shift": {
            "description": "How much to shift the PTPClock using a TimeFlow Shifter",
            "default": false,
            "oneOf": [
                {
                    "type": "number"
                },
                {
                    "const": false
                }
            ]
        },
        "locking": {
            "description": "Locking Policy",
            "default": true,
            "type": "boolean"
        }
    }
}
