module H3C-ifmgr-action { yang-version 1.1; namespace "http://www.h3c.com/netconf/action:1.0-Ifmgr"; prefix "ifmgr-action"; import comware-basetype { prefix "base"; } organization "NEW H3C Technologies Co., Ltd."; contact "Website: http://www.h3c.com"; description "The module entities for ifmgr action."; revision 2025-02-13 { description "Modify ifmgr/Interfaces/Interface/UsingType add new type."; reference "private"; } revision 2024-09-11 { description "Synchronize the modification of the schema file to the YANG file."; } revision 2024-08-08 { description "Add new node ifmgr/Interfaces/Interface/UsingType."; } revision 2024-07-18 { description "Add new node Ifmgr/Interfaces/Interface/ReduceRestore."; } revision 2020-05-09 { description "Synchronize the modification of the schema file to the YANG file."; } revision 2020-04-07 { description "Initial revision."; } container Ifmgr { config false; action Interfaces { description "This table contains interface action information."; input { list Interface { key "IfIndex"; leaf IfIndex { type base:Basetype_NameAndIndexUnion; mandatory true; description "Interface index as table index"; } leaf Loopback { type enumeration { enum 1; enum 2; } mandatory true; description "Interface loopback testing as follows: 1 Internal 2 External"; } leaf Default { type empty; mandatory true; description "Restore default settings."; } leaf Clear { type empty; mandatory true; description "Clears interface statistics."; } leaf ReduceRestore { type empty; mandatory true; description "Restore interface default speed."; } leaf UsingType { type enumeration { enum 0; enum 1; enum 2; enum 3; enum 4; enum 5; enum 6; enum 7; enum 8; enum 9; enum 10; enum 11; enum 12; enum 13; enum 14; enum 15; enum 16; enum 17; enum 18; enum 19; enum 20; enum 21; enum 22; enum 23; enum 24; enum 25; enum 26; enum 27; enum 28; enum 29; enum 30; enum 37; enum 38; enum 39; enum 40; enum 41; enum 42; enum 43; enum 44; enum 45; enum 46; enum 47; enum 48; enum 49; enum 50; enum 51; enum 52; enum 53; enum 54; enum 55; enum 56; enum 57; enum 58; enum 59; enum 60 { description "400GETOXGE4channel"; } enum 61 { description "XGETO400GE"; } } description "Split or combine interfaces. Each enumeration represents a switching mode: 0 UNKNOWN 1 XGETOFGE 2 XGETOHGE 3 FGETOXGE 4 HGETOXGE 5 FGETOHGE 6 HGETOFGE 7 FGETOTGE 8 TGETOFGE 9 HGETOWGE 10 WGETOHGE 11 FC16GTO32G 12 FC32GTO16G 13 400GETOHGE 14 HGETO400GE 15 400GETO50GE 16 50GETO400GE 17 400GETO200GE 18 200GETO400GE 19 200GETOHGE 20 HGETO200GE 21 200GETO25GE 22 200GETO50GE 23 400GETO25GE 24 25GETO200GE 25 50GETO200GE 26 25GETO400GE 27 HGETO50GE 28 50GETOHGE 29 XGETO200GE 30 200GETOXGE 37 400GETO2HGEchannel 38 800GETOHGE1channel 39 800GETO200GE1channel 40 800GETO400GE1channel 41 400GETOHGE1channel 42 400GETO200GE1channel 43 200GETOHGE1channel 44 800GETO400GE 45 800GETO400GE2channel 46 800GETO200GE2channel 47 400GETO200GE2channel 48 400GETO100GE2channel 49 200GETO100GE2channel 50 200GETOFGE 51 200GETOFGE1channel 52 HGETOXGE2channel 53 HGETO25GE2channel 54 HGETO800GE 55 200GETO800GE 56 400GETO800GE 57 40GETO200GE 58 800GETOHGE 59 800GETO200GE 60 400GETOXGE4channel 61 XGETO400GE"; } } } } action ClearAllIfStatistics { description "This table is used to clear statistics on all interfaces."; input { leaf Clear { type empty; mandatory true; description "Clears statistics on all interfaces."; } } } action SubInterfaces { description "This table is used to create or delete sub-interfaces."; input { list Interface { key "IfIndex"; leaf IfIndex { type base:Basetype_NameAndIndexUnion; mandatory true; description "Interface index as table index."; } leaf SubNum { type base:Basetype_UnsignedInteger32; mandatory true; description "Sub-interface number."; } leaf Remove { type empty; mandatory true; description "Delete specified sub-interface."; } } } } action LogicInterfaces { description "This table is used to create or delete logic interfaces."; input { list Interface { key "IfTypeExt Number"; leaf IfTypeExt { type base:Basetype_UnsignedInteger32; mandatory true; description "the interface type"; } leaf Number { type base:Basetype_UnsignedInteger32; mandatory true; description "Number of the logic interface."; } leaf Remove { type empty; mandatory true; description "Delete specified logic interface."; } } } } action VirtualCableTest { description "VirtualCableTest table"; input { list Interface { key "IfIndex"; leaf IfIndex { type base:Basetype_NameAndIndexUnion; mandatory true; description "Interface index as table index."; } } } } action EthFlexESwitch { description "This table is used to switch port type of interfaces between Eth and flexE"; input { list Interface { key "IfName"; leaf IfName { type base:Basetype_InterfaceName; mandatory true; description "Full name of an interface."; } leaf PortType { type enumeration { enum 1; enum 2; enum 3; } mandatory true; description "the switched port type of an Interface as follows: 1 switch to Eth type 2 switch to flexE type 3 switch to flexEfg type"; } } } } action ClearPacketDropStatistics { description "This table is used to clear dropped packets of specified interface."; input { list Interface { key "IfIndex"; leaf IfIndex { type base:Basetype_NameAndIndexUnion; mandatory true; description "Interface index as table index."; } leaf Clear { type empty; mandatory true; description "Clear dropped packets of specified interface."; } } } } action ShutdownAllPhyIf { description "This table is used to shut all physical interfaces down."; input { leaf Shutdown { type base:Basetype_Boolean; description "Shut down all physical interfaces."; } } } action NakStatistics { description "This table contains statistics for NAK packets from the interface."; input { list Interface { key "IfName"; leaf IfName { type base:Basetype_InterfaceName; mandatory true; description "Full name of an interface."; } leaf Clear { type empty; mandatory true; description "Clear the NAK packet statistics of the interface."; } } } } action CnpStatistics { description "This table contains statistics for CNP packet from the interface."; input { list Interface { key "IfName"; leaf IfName { type base:Basetype_InterfaceName; mandatory true; description "Full name of an interface."; } leaf Clear { type empty; mandatory true; description "Clear the CNP packet statistics of the interface."; } } } } action ClearAllIfNakStatistics { description "This table is used to clear NAK packet statistics on all interfaces."; input { leaf Clear { type empty; mandatory true; description "Clear NAK packet statistics on all interfaces."; } leaf ClearIfType { type base:Basetype_UnsignedInteger32{ range "0..256"; } mandatory true; description "Interface type. Numerical value must be in range(0..256)."; } } } action ClearAllIfCnpStatistics { description "This table is used to clear CNP packet statistics on all interfaces."; input { leaf Clear { type empty; mandatory true; description "Clears CNP packet statistics on all interfaces."; } leaf ClearIfType { type base:Basetype_UnsignedInteger32 { range "0..256"; } mandatory true; description "Interface type. Numerical value must be in range(0..256)."; } } } } }