-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnexus_network_schema.json
140 lines (139 loc) · 3.7 KB
/
nexus_network_schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/osrf/nexus/main/nexus_network_configuration/schemas/nexus_network_schema.json",
"title": "NEXUS Network Configuration",
"description": "A network configuration of the NEXUS Orchestrators",
"type": "object",
"required": [
"mode",
"enable_rest_api",
"system_orchestrators",
"workcell_orchestrators"
],
"properties": {
"mode":{
"description": "Mode of Zenoh bridge, specified as either 'client' or 'peer'. Use 'client' when there is an available Zenoh router, otherwise use 'peer' for a distributed system.",
"type": "string",
"enum": ["peer", "client"]
},
"enable_rest_api":{
"description": "When true, activates a REST API used to administer Zenoh Bridge configurations",
"type": "boolean"
},
"system_orchestrators": {
"type": "array",
"items": { "$ref": "#/$defs/system_orchestrator_unit"}
},
"workcell_orchestrators": {
"type": "array",
"items": { "$ref": "#/$defs/workcell_orchestrator_unit"}
}
},
"$defs": {
"queries_timeout": {
"description": "Timeout parameters for Zenoh queries",
"type": "object",
"properties": {
"default": {
"type": "number"
}
}
},
"allow": {
"description": "Additional endpoints to allow, these could be endpoints not defined in REDF but are necessary for lifecycle transitions",
"type": "object",
"properties": {
"subscribers": {
"type": "array"
},
"publishers": {
"type": "array"
},
"service_servers": {
"type": "array"
},
"service_clients": {
"type": "array"
},
"action_servers": {
"type": "array"
},
"action_clients": {
"type": "array"
}
}
},
"system_orchestrator_unit": {
"type": "object",
"required": ["namespace", "domain_id", "tcp_listen"],
"properties": {
"namespace":{
"$ref": "#/$defs/namespace"
},
"domain_id":{
"$ref": "#/$defs/domain_id"
},
"tcp_listen":{
"$ref": "#/$defs/tcp_listen"
},
"rest_api_http_port":{
"$ref": "#/$defs/rest_api_http_port"
},
"allow":{
"$ref": "#/$defs/allow"
},
"queries_timeout":{
"$ref": "#/$defs/queries_timeout"
}
}
},
"workcell_orchestrator_unit": {
"type": "object",
"required": ["namespace", "domain_id", "tcp_connect"],
"properties": {
"namespace":{
"$ref": "#/$defs/namespace"
},
"domain_id":{
"$ref": "#/$defs/domain_id"
},
"tcp_connect":{
"$ref": "#/$defs/tcp_connect"
},
"rest_api_http_port":{
"$ref": "#/$defs/rest_api_http_port"
},
"allow":{
"$ref": "#/$defs/allow"
},
"queries_timeout":{
"$ref": "#/$defs/queries_timeout"
}
}
},
"namespace":{
"description": "ROS Namespace of the endpoints",
"type": "string"
},
"domain_id":{
"description": "ROS Domain ID",
"type": "integer",
"minimum": 0,
"maximum": 232
},
"tcp_connect":{
"description": "TCP Address of system orchestrator Zenoh bridge",
"type": "array"
},
"tcp_listen":{
"description": "TCP Address of system orchestrator Zenoh bridge",
"type": "array"
},
"rest_api_http_port":{
"description": "HTTP Port for the REST API",
"type": "integer",
"minimum": 0,
"maximum": 65535
}
}
}