-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-restconf-cli.yang
86 lines (64 loc) · 1.72 KB
/
netgate-restconf-cli.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
module netgate-restconf-cli {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-restconf-cli";
prefix "ngrccli";
import clixon-restconf {
prefix clrc;
}
import netgate-cli-extensions {
prefix "ngcliext";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"This YANG module provides TNSR CLI augments for
clixon RESTCONF model.
Copyright 2021 Rubicon Communications, LLC.";
revision 2023-02-15 {
description
"TNSR Release 23.02.";
}
revision 2021-06-15 {
description
"TNSR Release 21.07.";
}
revision 2021-03-29 {
description
"initial release.";
}
augment "/clrc:restconf" {
ngcliext:node-fmt "restconf$n";
ngcliext:pre-children-op "push";
}
augment "/clrc:restconf/enable" {
ngcliext:node-fmt "^$% @@$n";
}
augment "/clrc:restconf/enable-http-data" {
ngcliext:node-op "bool";
ngcliext:node-fmt "|^gui enable$n";
}
augment "/clrc:restconf/auth-type" {
ngcliext:node-fmt "^global authentication-type @@$n";
}
augment "/clrc:restconf/server-ca-cert-path" {
ngcliext:node-fmt "^global server-ca-cert-path @@$n";
}
augment "/clrc:restconf/server-cert-path" {
ngcliext:node-fmt "^global server-certificate @@$n";
}
augment "/clrc:restconf/server-key-path" {
ngcliext:node-fmt "^global server-key @@$n";
}
augment "/clrc:restconf/socket/namespace" {
ngcliext:node-fmt "^server @@%{address}%{port}%{ssl}$n";
}
augment "/clrc:restconf/socket/address" {
ngcliext:sibling-fmt " @@";
}
augment "/clrc:restconf/socket/port" {
ngcliext:sibling-fmt " @@";
}
augment "/clrc:restconf/socket/ssl" {
ngcliext:sibling-fmt " @@";
}
}