blob: f3c3bf1c224f42298e9d957921a7a0c9459f289d (
plain)
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
|
module openconfig-if-poe {
yang-version "1";
namespace "http://openconfig.net/yang/poe";
prefix "oc-poe";
import openconfig-if-ethernet { prefix oc-eth; }
import openconfig-interfaces { prefix oc-if; }
import openconfig-extensions { prefix oc-ext; }
organization "OpenConfig working group";
contact
"Openconfig working group
www.openconfig.net";
description
"This module defines configuration and state data for
Power over Ethernet (PoE) based on the IEEE 802.3af
standard.";
oc-ext:openconfig-version "0.1.0";
revision "2017-09-14" {
description
"Initial public revision";
reference "0.1.0";
}
grouping poe-ethernet-config {
description
"PoE ethernet config grouping";
leaf enabled {
type boolean;
default "true";
description
"Enable or disable PoE in the ethernet interface.";
}
}
grouping poe-ethernet-state {
description
"PoE ethernet state grouping";
leaf power-used {
type decimal64 {
fraction-digits 2;
}
units Watts;
description
"Power used by the ethernet interface in Watts.";
}
leaf power-class {
type uint8;
description
"IEEE 802.3af Power class detected for this ethernet
interface.";
}
}
grouping poe-ethernet-top {
description
"Ethernet top level grouping";
container poe {
description
"Top-level container for PoE configuration and state data";
container config {
description
"Configuration data for PoE";
uses poe-ethernet-config;
}
container state {
config false;
description
"Operational state data for PoE";
uses poe-ethernet-config;
uses poe-ethernet-state;
}
}
}
augment "/oc-if:interfaces/oc-if:interface/oc-eth:ethernet" {
description
"Adds PoE to the ethernet model.";
uses poe-ethernet-top;
}
}
|