-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-conf-history.yang
149 lines (125 loc) · 2.3 KB
/
netgate-conf-history.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
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
module netgate-conf-history {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-conf-history";
prefix "ngconfhistory";
import netgate-cli-extensions {
prefix "ngcliext";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"Definitions of configuration history feature data and operations.
Copyright 2021 Rubicon Communications, LLC.
All rights reserved.";
revision 2022-02-15 {
description
"TNSR Release 22.02.";
}
revision 2021-06-15 {
description
"Initial revision.";
}
rpc conf-history-get-log {
input {
leaf commit-header {
type string {
length "1..128";
}
}
}
output {
container logs {
list log {
leaf commit {
type string;
}
}
}
}
}
rpc conf-history-save-version {
input {
leaf version-name {
type string {
length "1..63";
}
}
}
}
rpc conf-history-load-version {
input {
leaf version-name {
type string {
length "1..63";
}
}
}
}
rpc conf-history-drop-versions {
input {
leaf version-name {
type string {
length "1..63";
}
}
}
}
rpc conf-history-get-versions {
output {
container versions {
list version {
leaf version-name {
type string;
}
}
}
}
}
rpc conf-history-diff-versions {
input {
leaf version1 {
type string {
length "1..63";
}
}
leaf version2 {
type string {
length "1..63";
}
}
}
output {
leaf plain-diff {
type string;
}
}
}
container conf-history-config {
description
"Config database archive configurations.";
container version-history-config {
ngcliext:parent-fmt "configuration history";
leaf conf-history-enabled {
type boolean;
default true;
ngcliext:node-op "bool";
ngcliext:node-fmt "$< disable$n|$< enable$n";
}
leaf conf-history-autosave-period {
type uint32;
ngcliext:node-fmt "$< autosave-period @@$n";
}
}
}
container conf-history-state {
config "false";
container version-history-config {
leaf conf-history-enabled {
type boolean;
}
leaf conf-history-autosave-period {
type uint32;
}
}
}
}