openconfig-platform-common

This modules contains common groupings that are used in multiple components within the platform module.

  • Version: 2022-04-21

    openconfig-platform-common@2022-04-21


    
      submodule openconfig-platform-common {
    
        yang-version 1;
    
        belongs-to openconfig-platform {
            prefix oc-platform;
        }
    
        import openconfig-extensions {
          prefix oc-ext;
        }
        import openconfig-types {
          prefix oc-types;
        }
    
        organization "OpenConfig working group";
    
        contact
          "OpenConfig working group
        www.openconfig.net";
    
        description
          "This modules contains common groupings that are used in multiple
        components within the platform module.";
    
        revision "2022-04-21" {
          description
            "Add platform utilization.";
          reference
            "0.16.0";
    
        }
    
        oc-ext:openconfig-version "0.16.0";
    
        grouping platform-utilization-top {
          description
            "Top level of utilization.";
          container utilization {
            description
              "Utilization of the component.";
            container resources {
              description
                "Enclosing container for the resources in this component.";
              list resource {
                key "name";
                description
                  "List of resources, keyed by resource name.";
                leaf name {
                  type leafref {
                    path "../config/name";
                  }
                  description
                    "References the resource name.";
                }
    
                container config {
                  description
                    "Configuration data for each resource.";
                  uses platform-utilization-resource-config;
                }  // container config
    
                container state {
                  config false;
                  description
                    "Operational state data for each resource.";
                  uses platform-utilization-resource-config;
    
                  uses platform-utilization-resource-state;
                }  // container state
              }  // list resource
            }  // container resources
          }  // container utilization
        }  // grouping platform-utilization-top
    
        grouping platform-utilization-resource-config {
          description
            "Configuration data for utilization resource.";
          leaf name {
            type string;
            description
              "Resource name within the component.";
          }
        }  // grouping platform-utilization-resource-config
    
        grouping platform-utilization-resource-state {
          description
            "Operational state data for utilization resource.";
          leaf used {
            type uint64;
            description
              "Number of entries currently in use for the resource.";
          }
    
          leaf committed {
            type uint64;
            description
              "Number of entries currently reserved for this resource. This is only
            relevant to tables which allocate a block of resource for a given
            feature.";
          }
    
          leaf free {
            type uint64;
            description
              "Number of entries available to use.";
          }
    
          leaf max-limit {
            type uint64;
            description
              "Maximum number of entries available for the resource. The value
            is the theoretical maximum resource utilization possible.";
          }
    
          leaf high-watermark {
            type uint64;
            description
              "A watermark of highest number of entries used for this resource.";
          }
    
          leaf last-high-watermark {
            type oc-types:timeticks64;
            description
              "The time when the high-watermark was last updated";
          }
        }  // grouping platform-utilization-resource-state
      }  // submodule openconfig-platform-common
    

© 2023 YumaWorks, Inc. All rights reserved.