-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnetgate-ssh-server.yang
91 lines (71 loc) · 1.69 KB
/
netgate-ssh-server.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
module netgate-ssh-server {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-ssh-server";
prefix "ngsshs";
import netgate-cli-extensions {
prefix "ngcliext";
}
import netgate-common {
prefix "ngcom";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"This YANG module provides a data model for the SSH server.
Copyright 2020 Rubicon Communications, LLC.";
revision 2021-02-15 {
description
"TNSR Release 21.02.";
}
revision 2020-06-15 {
description
"TNSR Release 20.06.";
}
revision 2020-04-08 {
description
"Initial release.";
}
rpc ssh-server-control {
description
"Control of SSH server for dataplane interfaces.";
input {
leaf operation {
type ngcom:service-operation;
mandatory true;
description
"One of the strings 'start', 'stop', 'restart',
or 'status'.";
}
leaf namespace {
type ngcom:network-namespace;
description
"Network namespace.";
}
}
output {
leaf stdout {
type string;
description
"Command output.";
}
}
}
container ssh-server-config {
description
"Configuration for the SSH server.";
ngcliext:parent-fmt "ssh";
container dataplane {
description
"Dataplane-specific parameters of SSH server.";
ngcliext:parent-fmt "$< dataplane";
leaf enable {
type boolean;
description
"If true, SSH server is enabled for dataplane
interfaces.";
ngcliext:node-op "bool";
ngcliext:node-fmt "|$< enable$n";
}
}
}
}