ietf-hardware: YANG: Deviate everything not supported yet

This commit is contained in:
Mattias Walström
2024-02-23 14:01:23 +01:00
parent 6099ac79e2
commit 5e707753e9
+51 -1
View File
@@ -8,7 +8,7 @@ module infix-hardware {
import iana-hardware {
prefix iahw;
}
import ietf-yang-types {
prefix yang;
}
@@ -25,6 +25,56 @@ module infix-hardware {
description "A two-letter country code.";
}
identity hardware-class {
description "infix hardware base class";
}
identity usb {
base hardware-class;
description "This identity is used to describe a USB port";
}
identity vpd {
base hardware-class;
description "This identity is used to a VPD memory on the device.";
}
deviation "/iehw:hardware/iehw:component/iehw:class" {
deviate replace {
type identityref {
base hardware-class;
}
}
}
deviation "/iehw:hardware/iehw:component/iehw:state/iehw:admin-state" {
deviate add {
must ". = 'locked' or . = 'unlocked'" {
error-message "Only 'locked' and 'unlocked' states are allowed here.";
}
}
}
deviation "/iehw:hardware/iehw:component/iehw:state/iehw:standby-state" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:sensor-data" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:parent" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:parent-rel-pos" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:alias" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:uri" {
deviate not-supported;
}
deviation "/iehw:hardware/iehw:component/iehw:asset-id" {
deviate not-supported;
}
augment "/iehw:hardware/iehw:component" {
container vpd-data {
config false;