130 lines
4.4 KiB
YANG
130 lines
4.4 KiB
YANG
module H3C-ifmgr-event {
|
|
namespace "http://www.h3c.com/netconf/event:1.0/ifmgr:1.0";
|
|
prefix "ifmgr-event";
|
|
import comware-basetype {
|
|
prefix "base";
|
|
}
|
|
|
|
organization "NEW H3C Technologies Co., Ltd.";
|
|
contact "Website: http://www.h3c.com";
|
|
description "The module entities for ifmgr event.";
|
|
revision 2020-05-09 {
|
|
description "Synchronize the modification of the schema file to the YANG file.";
|
|
}
|
|
revision 2020-04-07 {
|
|
description "Initial revision.";
|
|
}
|
|
notification InterfaceEvent {
|
|
container Interface {
|
|
leaf Name {
|
|
type union {
|
|
type base:Basetype_EmptyString;
|
|
type base:Basetype_InterfaceName;
|
|
}
|
|
description "Full name of an interface.";
|
|
}
|
|
leaf Status {
|
|
type base:Basetype_Integer32 {
|
|
range "0..5";
|
|
}
|
|
description "Interface administration status,as follows:
|
|
0 IF_ACTIVE
|
|
1 IF_DEACTIVE
|
|
2 IF_PHY_UP
|
|
3 IF_PHY_DOWN
|
|
4 IF_LINK_UP
|
|
5 IF_LINK_DOWN";
|
|
}
|
|
leaf Description {
|
|
type base:Basetype_Text {
|
|
length "0..255";
|
|
}
|
|
description "Interface description.String length constraints must be in range(0..255).";
|
|
}
|
|
leaf IfIndex {
|
|
type base:Basetype_NameAndIndexUnion;
|
|
description "Interface index as table index.";
|
|
}
|
|
leaf AdminStatus {
|
|
type base:Basetype_Integer32 {
|
|
range "1..2";
|
|
}
|
|
description "Interface administration status,as follows:
|
|
1 Admin Up
|
|
2 Admin Down";
|
|
}
|
|
leaf OperStatus {
|
|
type base:Basetype_UnsignedInteger32 {
|
|
range "1..7";
|
|
}
|
|
description "Interface operation status as follows:
|
|
1: up
|
|
2: down
|
|
3: testing
|
|
4: unknown
|
|
5: dormant
|
|
6: notPresent
|
|
7: lowerLayerDown";
|
|
}
|
|
leaf IfType {
|
|
type union {
|
|
type base:Basetype_EmptyString;
|
|
type base:Basetype_UnsignedInteger32;
|
|
}
|
|
description "Interface type";
|
|
}
|
|
}
|
|
}
|
|
notification InterfaceBandWidthEvent {
|
|
container InterfaceBandWidth {
|
|
leaf IfIndex {
|
|
type base:Basetype_NameAndIndexUnion;
|
|
description "Interface index as table index.";
|
|
}
|
|
leaf Name {
|
|
type union {
|
|
type base:Basetype_EmptyString;
|
|
type base:Basetype_InterfaceName;
|
|
}
|
|
description "Full name of an interface.";
|
|
}
|
|
leaf CFGBandWidth {
|
|
type base:Basetype_UnsignedInteger32 {
|
|
range "1..400000000";
|
|
}
|
|
description "Configured bandwidth of an interface(units: kbit/s).";
|
|
}
|
|
leaf Description {
|
|
type base:Basetype_Text {
|
|
length "0..255";
|
|
}
|
|
description "Interface description.String length constraints must be in range(0..255).";
|
|
}
|
|
}
|
|
}
|
|
notification InterfaceSpeedEvent {
|
|
container InterfaceSpeed {
|
|
leaf Name {
|
|
type union {
|
|
type base:Basetype_EmptyString;
|
|
type base:Basetype_InterfaceName;
|
|
}
|
|
description "Full name of an interface.";
|
|
}
|
|
leaf BandWidth {
|
|
type base:Basetype_UnsignedInteger32 {
|
|
range "1..400000000";
|
|
}
|
|
description "The bandwidth of an interface.";
|
|
}
|
|
leaf Description {
|
|
type base:Basetype_Text {
|
|
length "0..255";
|
|
}
|
|
description "Interface description.String length constraints must be in range(0..255).";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|