Commit 6a91c76 1 parent cecbb0e commit 6a91c76 Copy full SHA for 6a91c76
File tree 2 files changed +80
-21
lines changed
2 files changed +80
-21
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ sysrepoctl -s $SEARCH \
212
212
-i iana-if-type@2023-01-26.yang -g wheel -p 0660 \
213
213
-i iana-hardware@2018-03-13.yang -g wheel -p 0660 \
214
214
-i ietf-hardware@2018-03-13.yang -g wheel -p 0660 \
215
+ -i infix-hardware@2024-01-18.yang -g wheel -p 0660 \
215
216
-i ieee802-dot1q-types@2022-10-29.yang -g wheel -p 0660 \
216
217
-i infix-ip@2023-09-14.yang -g wheel -p 0660 \
217
218
-i infix-if-type@2023-08-21.yang -g wheel -p 0660 \
Original file line number Diff line number Diff line change 1
1
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]+" ;
7
24
}
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
+ }
22
34
leaf part-number {
23
35
type string ;
24
36
}
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
+ }
27
70
leaf vendor {
28
71
type string ;
29
72
}
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
+ }
30
87
}
88
+ }
31
89
}
You can’t perform that action at this time.
0 commit comments