Loading yang-models/_3gpp-energy-nrm-energyinformation.yang +15 −20 Original line number Diff line number Diff line Loading @@ -28,34 +28,34 @@ module _3gpp-energy-nrm-energyinformation { description "The energyrelatedinformation shall be contained under ManagedElement"; } grouping EnergySourceInfo { grouping EnergySourceInfoGrp { description "This data type defines the information related to a type of energy source."; leaf energySourceType { type string; config true; description "The attribute is used to indicate the type of energy source used by an energy supply mode to produce the energy."; } leaf energySourceCef { type real; config true; type decimal64 { fraction-digits 2; } units "kg CO2eq/kWh"; description "The attribute is used to indicate the Carbon Emission Factor of a type of energy source. Its unit is kg CO2eq / kWh. a type of energy source. Its unit is kg CO2eq / kWh."; } leaf renewableEnergy { type boolean; config true; description "This attribute represents if the energy source is renewable or non-renewable. renewable or non-renewable."; } leaf energyCompositionPercentage { type real; config true; type uint8 { range 0..100; } default 100; description "The attribute is used to indicate the percentage of energy source type used by the energy supply mode."; Loading @@ -63,27 +63,24 @@ renewable or non-renewable. } grouping EnergyInfoGroup { grouping EnergyInfoGroupGrp { description "This IOC represents a group of Network Elements and information related to the energy supply modes that are used to power them."; list energySupplyModeRefList { type DN; config true; type types3gpp:DistinguishedName; description "The list of energy supply modes for the Network Elements of the group"; } list memberDNList { type DN; config true; default 0; type types3gpp:DistinguishedName; description "This attribute contains the DNs of managed entities that are members of the energy info group."; } } grouping EnergySupplyInfo { grouping EnergySupplyInfoGrp { description "This IOC defines the information related to energy supply and the sources used to produce the energy."; Loading @@ -93,14 +90,12 @@ and the sources used to produce the energy."; enum BACKUP_ENERGY; enum LOCALLY_GENERATED_ENERGY; } config true; description "This attribute indicates the mode by which energy is supplied to a Network Element. } list energySourceList { type EnergySourceInfo; config true; description "This attribute represents the list of sources used to produce the energy by the supplier. This includes energy related information i.e., carbon emission and renewable energy related information, and the percentage of Loading @@ -111,11 +106,11 @@ the energy produced using the source."; augment "/subnet3gpp:SubNetwork" { if-feature energyinformationUnderSubNetwork; uses EnergyInfoGroup; uses EnergyInfoGroupGrp; } augment "/me3gpp:ManagedElement" { if-feature energyinformationUnderManagedElement; uses EnergyInfoGroup; uses EnergyInfoGroupGrp; } } No newline at end of file Loading
yang-models/_3gpp-energy-nrm-energyinformation.yang +15 −20 Original line number Diff line number Diff line Loading @@ -28,34 +28,34 @@ module _3gpp-energy-nrm-energyinformation { description "The energyrelatedinformation shall be contained under ManagedElement"; } grouping EnergySourceInfo { grouping EnergySourceInfoGrp { description "This data type defines the information related to a type of energy source."; leaf energySourceType { type string; config true; description "The attribute is used to indicate the type of energy source used by an energy supply mode to produce the energy."; } leaf energySourceCef { type real; config true; type decimal64 { fraction-digits 2; } units "kg CO2eq/kWh"; description "The attribute is used to indicate the Carbon Emission Factor of a type of energy source. Its unit is kg CO2eq / kWh. a type of energy source. Its unit is kg CO2eq / kWh."; } leaf renewableEnergy { type boolean; config true; description "This attribute represents if the energy source is renewable or non-renewable. renewable or non-renewable."; } leaf energyCompositionPercentage { type real; config true; type uint8 { range 0..100; } default 100; description "The attribute is used to indicate the percentage of energy source type used by the energy supply mode."; Loading @@ -63,27 +63,24 @@ renewable or non-renewable. } grouping EnergyInfoGroup { grouping EnergyInfoGroupGrp { description "This IOC represents a group of Network Elements and information related to the energy supply modes that are used to power them."; list energySupplyModeRefList { type DN; config true; type types3gpp:DistinguishedName; description "The list of energy supply modes for the Network Elements of the group"; } list memberDNList { type DN; config true; default 0; type types3gpp:DistinguishedName; description "This attribute contains the DNs of managed entities that are members of the energy info group."; } } grouping EnergySupplyInfo { grouping EnergySupplyInfoGrp { description "This IOC defines the information related to energy supply and the sources used to produce the energy."; Loading @@ -93,14 +90,12 @@ and the sources used to produce the energy."; enum BACKUP_ENERGY; enum LOCALLY_GENERATED_ENERGY; } config true; description "This attribute indicates the mode by which energy is supplied to a Network Element. } list energySourceList { type EnergySourceInfo; config true; description "This attribute represents the list of sources used to produce the energy by the supplier. This includes energy related information i.e., carbon emission and renewable energy related information, and the percentage of Loading @@ -111,11 +106,11 @@ the energy produced using the source."; augment "/subnet3gpp:SubNetwork" { if-feature energyinformationUnderSubNetwork; uses EnergyInfoGroup; uses EnergyInfoGroupGrp; } augment "/me3gpp:ManagedElement" { if-feature energyinformationUnderManagedElement; uses EnergyInfoGroup; uses EnergyInfoGroupGrp; } } No newline at end of file