Debian Codegraph @

tests/inputs/bbf-device.yang

raw
1 // fragment of
2 // https://github.com/BroadbandForum/yang/raw/eaac2c3904365d3c7b17100c7d5120ed06a56b74/standard/common/bbf-device.yang
3 module bbf-device {
4 yang-version 1.1;
5 namespace "urn:bbf:yang:bbf-device";
6 prefix bbf-dvc;
7
8 import ietf-yang-types {
9 prefix yang;
10 }
11 import ietf-inet-types {
12 prefix inet;
13 }
14 import bbf-yang-types {
15 prefix bbf-yang;
16 }
17 import bbf-device-types {
18 prefix bbf-dvct;
19 }
20 import bbf-node-types {
21 prefix bbf-nodet;
22 }
23
24 organization
25 "Broadband Forum <https://www.broadband-forum.org>
26 Common YANG Work Area";
27 contact
28 "Comments or questions about this Broadband Forum YANG module
29 should be directed to <mailto:[email protected]>.
30
31 Editor: Nick Hancock, ADTRAN
32
33 Editor: Ludwig Pauwels, Nokia
34
35 PS Leader: Joey Boyd, ADTRAN
36
37 WA Director: Joey Boyd, ADTRAN
38
39 WA Director: Sven Ooghe, Nokia";
40
41 description
42 "This module contains a collection of YANG definitions for
43 supporting the Broadband Forum requirements on managing physical
44 devices.";
45
46 revision 2022-03-01 {
47 description
48 "Amendment 5.
49 * Approval Date: 2022-03-01.
50 * Publication Date: 2022-03-01.";
51 reference
52 "TR-383a5: Common YANG Modules
53 <https://www.broadband-forum.org/technical/download/
54 TR-383_Amendment-5.pdf>";
55 }
56
57 // Features
58
59 feature reports-device-powering-state {
60 description
61 "Indicates the support for reporting the device powering
62 state.";
63 }
64
65 // Device Properties
66
67 grouping device-alias {
68 description
69 "Alias information for the device.";
70 leaf alias {
71 type bbf-yang:string-ascii64;
72 description
73 "The alias that can be used to identify a device.";
74 }
75 }
76
77 // Device hardware information
78
79
80 // Device Management Information
81
82 grouping device-management-info {
83 description
84 "Data nodes relating to management plane information needed to
85 reach and communicate with the device.";
86 leaf ip-address {
87 type inet:host;
88 description
89 "The IP address or DNS domain name of the device.";
90 }
91 leaf port {
92 type inet:port-number;
93 description
94 "The port number used on the device for
95 management.";
96 }
97 leaf admin-state {
98 type bbf-nodet:admin-state;
99 description
100 "The administrative state of the device.";
101 }
102 }
103
104 }