blob: 46d9c7f947852af36a77d4a3cbd301d867be76bb (
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
module openconfig-platform-linecard {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/platform/linecard";
prefix "oc-linecard";
import openconfig-platform { prefix oc-platform; }
import openconfig-platform-types { prefix oc-platform-types; }
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
www.openconfig.net";
description
"This module defines data related to LINECARD components in
the openconfig-platform model";
oc-ext:openconfig-version "0.1.0";
revision "2017-08-03" {
description
"Initial revision";
reference "0.1.0";
}
// extension statements
// feature statements
// identity statements
// typedef statements
// grouping statements
grouping linecard-config {
description
"Configuration data for linecard components";
leaf power-admin-state {
type oc-platform-types:component-power-type;
default POWER_ENABLED;
description
"Enable or disable power to the linecard";
}
}
grouping linecard-state {
description
"Operational state data for linecard components";
leaf slot-id {
type string;
description
"Identifier for the slot or chassis position in which the
linecard is installed";
}
}
grouping linecard-top {
description
"Top-level grouping for linecard data";
container linecard {
description
"Top-level container for linecard data";
container config {
description
"Configuration data for linecards";
uses linecard-config;
}
container state {
config false;
description
"Operational state data for linecards";
uses linecard-config;
uses linecard-state;
}
}
}
// data definition statements
// augment statements
augment "/oc-platform:components/oc-platform:component" {
description
"Adding linecard data to physical inventory";
uses linecard-top {
when "current()/oc-platform:state/" +
"oc-platform:type = 'LINECARD'" {
description
"Augment is active when component is of type LINECARD";
}
}
}
// rpc statements
// notification statements
}
|