jx/internal/resource/schemas/network-route.schema.json
Matthew Rich 0888ae2045
Some checks failed
Lint / golangci-lint (push) Failing after 9m55s
Declarative Tests / test (push) Failing after 5s
add container-image resource
2024-05-23 22:11:51 -07:00

44 lines
1.1 KiB
JSON

{
"$id": "network-route.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "network-route",
"type": "object",
"required": [ "to", "gateway", "interface", "rtid", "metric", "type", "scope" ],
"properties": {
"to": {
"type": "string"
},
"gateway": {
"type": "string"
},
"interface": {
"type": "string"
},
"rtid": {
"type": "string",
"description": "Network route table id",
"pattern": "^(local|main|default|all|[0-9]+)$"
},
"metric": {
"type": "integer",
"description": "Network route metric",
"minimum": 0
},
"type": {
"type": "string",
"description": "Network route type",
"pattern": "^(unicast|local|broadcast|multicast|throw|unreachable|prohibit|blackhole|nat|[0-9]+)$"
},
"scope": {
"type": "string",
"description": "Network route scope",
"pattern": "^(host|link|global|[0-9]+)$"
},
"proto": {
"type": "string",
"description": "Network route scope",
"pattern": "^(kernel|boot|static|[0-9]+)$"
}
}
}