Commit 2516b3ed authored by scottma's avatar scottma
Browse files

Update _3gpp-nr-nrm-ecmappingrule.yang

parent 32c92df6
Loading
Loading
Loading
Loading
Loading
+24 −15
Original line number Diff line number Diff line
@@ -18,18 +18,15 @@ module _3gpp-nr-nrm-ecmappingrule {

  revision 2024-08-12 { reference CR-1336 ; } 
  
  feature EnergyCostMappingRule {
    description "Indicates whether alarm acknowledgement by the consumer is 
      supported.";
  feature ECMappingRuleUnderSubNetwork {
    description "ECMappingRule shall be contained under SubNetwork.";
  }  

  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 {
  feature ECMappingRuleUnderManagedElement {
    description "ECMappingRule shall be contained under ManagedElement.";
  }
  
  grouping ECMappingRuleInputGrp {
    leaf eCMRInputMinValue {
      type uint8;
      description "The minimum value of to be applied 
@@ -50,14 +47,26 @@ module _3gpp-nr-nrm-ecmappingrule {
      units seconds;
    }
  }

  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 ECMappingRuleInputGrp;
    }
  }
  }

  grouping NGRANECMappingRuleSubtree {
    key "idx";
    min-elements 1;
    max-elements 1;
    description "Helps augmenting NGRANECMappingRule into multiple places.";
    list NGRANECMappingRule {
    list idx {
      description "Specifies the energy cost mapping rules.";
      key "id";
      uses top3gpp:Top_Grp;
      container attributes {
        uses NGRANECMappingRuleGrp;
@@ -66,12 +75,12 @@ module _3gpp-nr-nrm-ecmappingrule {
  }
  
  augment "/subnet3gpp:SubNetwork" {
    if-feature EnergyCostMappingRule;
    if-feature EnergyCostMapECMappingRuleUnderSubNetwork;
    uses NGRANECMappingRuleSubtree;
  }

  augment "/me3gpp:ManagedElement" {
    if-feature EnergyCostMappingRule;
    if-feature ECMappingRuleUnderManagedElement;
    uses NGRANECMappingRuleSubtree;
  }
}