Commit 72f9fd02 authored by scottma's avatar scottma Committed by lengyelb
Browse files

Update _3gpp-nr-nrm-ecimappingrule.yang

parent a3f790c5
Loading
Loading
Loading
Loading
+20 −32
Original line number Diff line number Diff line
module _3gpp-nr-nrm-ecimappingrule {
module _3gpp-nr-nrm-ecmappingrule {
  yang-version 1.1;
  namespace urn:3gpp:sa5:_3gpp-nr-nrm-ecimappingrule;
  prefix ecimap3gpp;
  namespace urn:3gpp:sa5:_3gpp-nr-nrm-ecmappingrule;
  prefix ecmap3gpp;
  
  import _3gpp-common-top { prefix top3gpp; }
  import _3gpp-common-subnetwork { prefix subnet3gpp; }
@@ -18,24 +18,23 @@ module _3gpp-nr-nrm-ecimappingrule {

  revision 2024-08-12 { reference CR-1336 ; } 
  
  grouping ECIMappingRuleInput {
  grouping ecMappingRuleInput {
    description 
    "Input to the unified mapping rule to support ECI.";
    reference "3GPP TS 28.541";
    "Input to the unified mapping rule to support energy cost reporting.";
  
    leaf eciMRInputMinimumValue {
    leaf ecMRInputMinimumValue {
      type uint8;
      description "The minimum value of to be applied 
      for mapping from this attribute to the energy cost.";
    }
    
    leaf eciMRInputMaximumValue {
    leaf ecMRInputMaximumValue {
      type uint8;
      description "The maximum value of to be applied 
      for mapping from this attribute to the energy cost.";  
    }

    leaf eciTimeInterval {
    leaf ecTimeInterval {
      type uint8;
      description "Time interval (in seconds) that 
      should be applied for collecting values of mapping 
@@ -43,49 +42,38 @@ module _3gpp-nr-nrm-ecimappingrule {
    }
  }

  grouping NGRANECIMappingRuleGrp {
    description "Represents the NGRANECIMappingRule IOC.";
    list dynamic5QIs {
  grouping NGRANECMappingRuleGrp {
    description "Represents the NGRANECMappingRule IOC.";
    list rules {
      description "This IOC represents a unified mapping rule.";
    key id;
    uses top3gpp:Top_Grp;
    container attributes {
      uses ECIMappingRuleInput;
      }
      uses ECMappingRuleInput;
      }
    }

  grouping NGRANECIMappingRuleSetGrp {
    description "Represents the NGRANECIMappingRuleSet IOC.";
    list dynamic5QIs {
      description "This IOC represents a group of mapping rules.";
    key id;
    uses top3gpp:Top_Grp;
    container attributes {
      uses NGRANECIMappingRuleGrp;
      }
  }    
  }    

  grouping NGRANECIMappingRuleSetSubtree {
    description "Helps augmenting NGRANECIMappingRuleSet into multiple places.";
    list NGRANECIMappingRuleSet {
      description "Specifies the ECI mapping rules, see 3GPP TS 28.541.";
  grouping NGRANECMappingRuleSubtree {
    description "Helps augmenting NGRANECMappingRule into multiple places.";
    list NGRANECMappingRule {
      description "Specifies the energy cost mapping rules.";
      key "id";
      uses top3gpp:Top_Grp;
      container attributes {
        uses NGRANECIMappingRuleSetGrp;
        uses NGRANECMappingRuleGrp;
      }
      uses NGRANECIMappingRuleGrp;
      uses NGRANECMappingRuleGrp;
    }  
  }
  
  augment "/subnet3gpp:SubNetwork" {
    uses NGRANECIMappingRuleSetSubtree;
    uses NGRANECMappingRuleSubtree;
  }

  augment "/me3gpp:ManagedElement" {
    uses NGRANECIMappingRuleSetSubtree;
    uses NGRANECMappingRuleSubtree;
  }

}