jx/internal/resource/schemas/network-route.schema.json

44 lines
1.1 KiB
JSON
Raw Normal View History

2024-04-09 19:51:56 +00:00
{
2024-05-24 05:11:51 +00:00
"$id": "network-route.schema.json",
2024-04-09 19:51:56 +00:00
"$schema": "http://json-schema.org/draft-07/schema#",
2024-05-24 05:11:51 +00:00
"title": "network-route",
2024-04-09 19:51:56 +00:00
"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]+)$"
}
}
}