Skip to content

Commit 6a91c76

Browse files
committed
ietf-hardware: Add infix deviations
1 parent cecbb0e commit 6a91c76

File tree

2 files changed

+80
-21
lines changed

2 files changed

+80
-21
lines changed

src/confd/bin/bootstrap

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ sysrepoctl -s $SEARCH \
212212
-i iana-if-type@2023-01-26.yang -g wheel -p 0660 \
213213
-i iana-hardware@2018-03-13.yang -g wheel -p 0660 \
214214
-i ietf-hardware@2018-03-13.yang -g wheel -p 0660 \
215+
-i infix-hardware@2024-01-18.yang -g wheel -p 0660 \
215216
-i ieee802-dot1q-types@2022-10-29.yang -g wheel -p 0660 \
216217
-i infix-ip@2023-09-14.yang -g wheel -p 0660 \
217218
-i infix-if-type@2023-08-21.yang -g wheel -p 0660 \
+79-21
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,89 @@
11
module infix-hardware {
2-
yang-version 1.1;
3-
namespace "urn:infix:hardware:ns:yang:1.0";
4-
prefix ih;
5-
import ietf-hardware {
6-
prefix iehw;
2+
yang-version 1.1;
3+
namespace "urn:infix:hardware:ns:yang:1.0";
4+
prefix ih;
5+
import ietf-hardware {
6+
prefix iehw;
7+
}
8+
import iana-hardware {
9+
prefix iahw;
10+
}
11+
12+
import ietf-yang-types {
13+
prefix yang;
14+
}
15+
16+
revision 2024-01-18 {
17+
description "Initial";
18+
reference "internal";
19+
}
20+
typedef country-code {
21+
type string {
22+
length 2;
23+
pattern "[A-Za-z]+";
724
}
8-
import iana-hardware {
9-
prefix iahw;
10-
}
11-
revision 2024-01-18 {
12-
description "Initial";
13-
reference "internal";
14-
}
15-
identity power {
16-
base iahw:hardware-class;
17-
}
18-
identity product {
19-
base iahw:hardware-class;
20-
}
21-
augment "/iehw:hardware/iehw:component" {
25+
description "A two-letter country code.";
26+
}
27+
28+
augment "/iehw:hardware/iehw:component" {
29+
container vpd-data {
30+
config false;
31+
leaf product-name {
32+
type string;
33+
}
2234
leaf part-number {
2335
type string;
2436
}
25-
}
26-
augment "/iehw:hardware/iehw:component" {
37+
leaf serial-number {
38+
type string;
39+
}
40+
leaf mac-address {
41+
type yang:mac-address;
42+
}
43+
leaf manufacture-date {
44+
type string;
45+
}
46+
leaf device-version {
47+
type uint8;
48+
}
49+
leaf label-revision {
50+
type string;
51+
}
52+
leaf label-version {
53+
type string;
54+
}
55+
leaf platform-name {
56+
type string;
57+
}
58+
leaf onie-version {
59+
type string;
60+
}
61+
leaf num-macs {
62+
type uint16;
63+
}
64+
leaf manufacturer {
65+
type string;
66+
}
67+
leaf coutry-code {
68+
type country-code;
69+
}
2770
leaf vendor {
2871
type string;
2972
}
73+
leaf diag-version {
74+
type string;
75+
}
76+
leaf service-tag {
77+
type string;
78+
}
79+
list vendor-extension {
80+
leaf iana-enterprise-number {
81+
type uint32;
82+
}
83+
leaf extension-data {
84+
type string;
85+
}
86+
}
3087
}
88+
}
3189
}

0 commit comments

Comments
 (0)