mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 05:13:01 +02:00
ietf-hardware: YANG: Deviate everything not supported yet
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user