-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathsonic-telemetry.yang
92 lines (69 loc) · 2.3 KB
/
sonic-telemetry.yang
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
module sonic-telemetry {
yang-version 1.1;
namespace "http://github.com/sonic-net/sonic-telemetry";
prefix telemetry;
import ietf-inet-types {
prefix inet;
}
organization
"SONiC";
contact
"SONiC";
description "TELEMETRY YANG Module for SONiC OS";
revision 2022-05-13 {
description "First Revision";
}
container sonic-telemetry {
container TELEMETRY {
description "TELEMETRY TABLE part of config_db.json";
container certs {
leaf ca_crt {
type string {
pattern '(/[a-zA-Z0-9_-]+)*/([a-zA-Z0-9_-]+).cer';
}
description "Local path for ca_crt.";
}
leaf server_crt {
type string {
pattern '(/[a-zA-Z0-9_-]+)*/([a-zA-Z0-9_-]+).cer';
}
description "Local path for server_crt.";
}
leaf server_key {
type string {
pattern '(/[a-zA-Z0-9_-]+)*/([a-zA-Z0-9_-]+).key';
}
description "Local path for server_key.";
}
}
container gnmi {
leaf client_auth {
type boolean;
description "Flag for requiring client auth.";
}
leaf log_level {
type uint8 {
range 0..100;
}
description "Log level for gnmi.";
}
leaf port {
type inet:port-number;
description "Port gnmi runs on.";
}
leaf save_on_set {
type boolean;
description "Flag for enabling save on set.";
}
leaf enable_crl {
type boolean;
description "Flag for enable certificate revocation list.";
}
leaf crl_expire_duration {
type uint32;
description "Certificate revocation list cache expire duration.";
}
}
}
}
}