-
Notifications
You must be signed in to change notification settings - Fork 2
/
example-network-manager-fixed.yang
56 lines (53 loc) · 1.12 KB
/
example-network-manager-fixed.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
module example-network-manager-fixed {
yang-version 1.1;
namespace "urn:example:network-manager-fixed";
prefix exf;
import ietf-inet-types {
prefix inet;
}
import ietf-yang-schema-mount {
prefix yangmnt;
}
import example-device-types {
prefix edt;
}
container managed-devices {
description
"The managed devices and device communication settings.";
list device {
key name;
leaf name {
type string;
}
leaf type {
type identityref {
base edt:device-type;
}
}
container transport {
choice protocol {
mandatory true;
container netconf {
leaf address {
type inet:ip-address;
mandatory true;
}
container authentication {
// ...
}
}
container restconf {
leaf address {
type inet:ip-address;
mandatory true;
}
// ...
}
}
}
container root {
yangmnt:mount-point managed-device;
}
}
}
}