{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "interface_type": {
            "$id": "/properties/interface_type",
            "title": "Interface Type",
            "type": "string",
            "default": "physical",
            "enum": [
                "physical",
                "logical"
            ]
        },
        "interface_filters": {
            "$id": "/properties/interface_filters",
            "title": "Interface Filters",
            "type": "array",
            "items": {
                "$id": "/properties/interface_filters/items",
                "type": "object",
                "title": "Filter",
                "maxProperties": 2,
                "additionalProperties": false,
                "properties": {
                    "op": {
                        "enum": [
                            "regex",
                            "startwith"
                        ],
                        "title": "Filter Type"
                    },
                    "expr": {
                        "type": "string",
                        "title": "Filter Expression"
                    }
                },
                "default": {},
                "examples": [
                    {
                        "op": "regex",
                        "expr": "^ge-"
                    },
                    {
                        "op": "regex",
                        "expr": "^xe"
                    }
                ]
            }
        }
    }
}