-
Notifications
You must be signed in to change notification settings - Fork 1
/
data-server.yaml
191 lines (180 loc) · 4.58 KB
/
data-server.yaml
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Copyright 2024 Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
grpc-server:
# gRPC listening address
# address: ":56000"
## TLS config
# tls:
# ca:
# cert:
# key:
# skip-verify:
# client-auth:
# expose local schema store over gRPC
schema-server:
# enables the schema gRPC server
enabled: true
# directory to store the uploaded schemas
schemas-directory: ./schemas
# data-server attributes
data-server:
# max number of candidates per DS
max-candidates: 16
# max message size in bytes the server can receive.
# If this is not set, it defaults to 4 * 1024 * 1024 (4MB)
max-recv-msg-size: 25165824 # 24 * 1024 * 1024 (24MB)
datastores: # this specifies MAIN datastores
# - name: srl1
# schema:
# name: srl
# vendor: Nokia
# version: 22.11.2
# sbi:
# type: gnmi # nc, nats, redis
# address: clab-schema-srl1:57400
# credentials:
# username: admin
# password: NokiaSrl1!
# tls:
# skip-verify: true
# sync:
# validate: true
# gnmi:
# - path:
# - /
# name: config
# mode: on-change
# encoding: 45
# # - path:
# # - /
# # name: state
# # mode: sample
# # encoding: 46
# - name: srl2
# schema:
# name: srl
# vendor: Nokia
# version: 22.11.2
# sbi:
# type: gnmi # nc, nats, redis
# address: clab-schema-srl2:57400
# credentials:
# username: admin
# password: NokiaSrl1!
# tls:
# skip-verify: true
# sync:
# validate: true
# gnmi:
# - path:
# - /
# name: config
# mode: on-change
# encoding: 45
# # - path:
# # - /
# # name: state
# # mode: sample
# # encoding: 46
# # - name: crpd1
# # schema:
# # name: junos
# # vendor: Juniper
# # version: 22.3R1
# # sbi:
# # type: nc
# # address: clab-crpd-crpd1
# # credentials:
# # username: root
# # password: clab123
# # schemas definitions
# # for local schema store only
# schemas:
# - name: sros
# vendor: Nokia
# version: 22.10
# files:
# - ./lab/common/yang/sros_22.10/YANG/nokia-combined
# directories:
# - ./lab/common/yang/sros_22.10/YANG/ietf
# - ./lab/common/yang/sros_22.10/YANG/nokia-sros-yang-extensions.yang
# - name: srl
# vendor: Nokia
# version: 22.11.2
# files:
# - ./lab/common/yang/srl-22.11.2/srl_nokia/models
# directories:
# - ./lab/common/yang/srl-22.11.2/ietf
# excludes:
# - .*tools.*
# - name: srl
# vendor: Nokia
# version: 22.11.1
# files:
# - ./lab/common/yang/srl-22.11.1/srl_nokia/models
# directories:
# - ./lab/common/yang/srl-22.11.1/ietf
# excludes:
# - .*tools.*
# - name: srl
# vendor: Nokia
# version: 22.6.4
# files:
# - ./lab/common/yang/srl-22.6.4/srl_nokia/models
# directories:
# - ./lab/common/yang/srl-22.6.4/ietf
# excludes:
# - .*tools.*
# - name: srl
# vendor: Nokia
# version: 22.3.2
# files:
# - ./lab/common/yang/srl-22.3.2/srl_nokia/models
# directories:
# - ./lab/common/yang/srl-22.3.2/ietf
# excludes:
# - .*tools.*
# - name: srl
# vendor: Nokia
# version: 21.11.3
# files:
# - ./lab/common/yang/srl-21.11.3/srl_nokia/models
# directories:
# - ./lab/common/yang/srl-21.11.3/ietf
# excludes:
# - .*tools.*
# remote schema server
schema-server:
address: localhost:55000
# TLS config
# tls:
# ca:
# cert:
# key:
# skip-verify:
# cache config, defaults to
# type: local
# store-type: badgerdb
# dir: ./cached/caches
cache:
type: remote
# store-type if type == local
#store-type: badgerdb
# local directory for caches if type == local
# dir: "./cached/caches"
# remote cache address, if type == remote
address: localhost:50100
# expose a prometheus server with cpu, mem and grpc metrics
prometheus:
address: ":56090"