junos-ex-conf-poe

Junos poe configuration module

  • Version: 2019-01-01

    junos-ex-conf-poe@2019-01-01


    
      module junos-ex-conf-poe {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-ex/conf/poe";
    
        prefix jc-poe;
    
        import junos-common-ddl-extensions {
          prefix junos;
          revision-date "2019-01-01";
        }
        import junos-common-types {
          prefix jt;
          revision-date "2019-01-01";
        }
        import junos-ex-conf-root {
          prefix jc;
          revision-date "2019-01-01";
        }
    
        organization "Juniper Networks, Inc.";
    
        contact "yang-support@juniper.net";
    
        description
          "Junos poe configuration module";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        augment /jc:configuration {
          uses poe-group;
        }
    
        augment /jc:configuration/jc:groups {
          uses poe-group;
        }
    
        grouping poe-group {
          container poe {
            description
              "Power over Ethernet options";
            uses apply-advanced;
    
            leaf management {
              type enumeration {
                enum "static" {
                  value 0;
                  description
                    "Static power allocation method";
                }
                enum "class" {
                  value 1;
                  description
                    "Class based power allocation method";
                }
                enum "high-power" {
                  value 2;
                  description
                    "High power allocation method";
                }
              }
              default "class";
              description
                "Power management mode for Power over Ethernet";
            }
    
            leaf guard-band {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 19";
                }
              }
              units "watts";
              default "0";
              description
                "Guard band for Power over Ethernet";
            }
    
            container notification-control {
              description
                "Notification control for Power over Ethernet traps";
              uses apply-advanced;
    
              list fpc {
                key "name";
                ordered-by user;
                description "FPC slot number";
                leaf name {
                  type union {
                    type string {
                      pattern "<.*>|$.*";
                    }
                    type uint32;
                  }
                  description "FPC slot number";
                }
    
                uses apply-advanced;
    
                leaf disable {
                  type empty;
                  description
                    "Disable Power over Ethernet notification";
                }
              }  // list fpc
            }  // container notification-control
    
            leaf lldp-priority {
              type empty;
              description
                "PoE controller LLDP priority";
            }
    
            list interface {
              key "name";
              ordered-by user;
              description
                "Interface configuration for Power over Ethernet";
              leaf name {
                type string;
                description "Name of interface";
              }
    
              uses apply-advanced;
    
              leaf disable {
                type empty;
                description "Disable interface";
              }
    
              leaf priority {
                type enumeration {
                  enum "low" {
                    value 0;
                    description "Low priority";
                  }
                  enum "high" {
                    value 1;
                    description "High priority";
                  }
                }
                default "low";
                description "Priority options";
              }
    
              leaf maximum-power {
                type decimal64 {
                  fraction-digits 9;
                }
                units "watts";
                default "15.4";
                description "Maximum power";
              }
    
              container telemetries {
                presence "enable telemetries";
                description
                  "Telemetries settings";
                uses apply-advanced;
    
                leaf disable {
                  type empty;
                  description
                    "Disable telemetries";
                }
    
                leaf interval {
                  type union {
                    type string {
                      pattern "<.*>|$.*";
                    }
                    type uint32 {
                      range "1 .. 30";
                    }
                  }
                  units "minutes";
                  default "5";
                  description
                    "Interval at which data should be recorded";
                }
    
                leaf duration {
                  type union {
                    type string {
                      pattern "<.*>|$.*";
                    }
                    type uint32 {
                      range "1 .. 24";
                    }
                  }
                  units "hours";
                  default "1";
                  description
                    "Duration to continue recording of data";
                }
              }  // container telemetries
    
              leaf af-mode {
                type empty;
                description "Enable 802.3af";
              }
    
              leaf high-power {
                type empty;
                description
                  "Enable fourpair high power interface upto 60W";
              }
    
              leaf ultrahigh-power {
                type empty;
                description
                  "Enable fourpair ultra high power interface upto 95W";
              }
            }  // list interface
    
            list fpc {
              key "name";
              ordered-by user;
              description "FPC slot number";
              leaf name {
                type string;
                description "FPC slot number";
              }
    
              uses apply-advanced;
    
              leaf management {
                type enumeration {
                  enum "static" {
                    value 0;
                    description
                      "Static power allocation method";
                  }
                  enum "class" {
                    value 1;
                    description
                      "Power allocation class";
                  }
                }
                default "class";
                description
                  "PoE management mode";
              }
    
              leaf guard-band {
                type union {
                  type string {
                    pattern "<.*>|$.*";
                  }
                  type uint32 {
                    range "0 .. 15";
                  }
                }
                units "watts";
                default "0";
                description "Guard band for PoE";
              }
    
              leaf maximum-power {
                type union {
                  type uint32;
                  type string {
                    pattern "<.*>|$.*";
                  }
                }
                units "watts";
                description
                  "Maximum FPC power limit";
              }
    
              leaf lldp-priority {
                type empty;
                description
                  "PoE controller LLDP priority";
              }
            }  // list fpc
          }  // container poe
        }  // grouping poe-group
    
        grouping apply-advanced {
          description
            "Apply advanced configuration logic";
          leaf-list apply-groups {
            type string;
            ordered-by user;
            description
              "Groups from which to inherit configuration data";
          }
    
          leaf-list apply-groups-except {
            type string;
            ordered-by user;
            description
              "Don't inherit configuration data from these groups";
          }
    
          list apply-macro {
            key "name";
            ordered-by user;
            description
              "Macro and parameters for commit script expansion";
            uses apply-macro-type;
          }  // list apply-macro
        }  // grouping apply-advanced
    
        grouping apply-macro-type {
          description
            "Macro data for commit-script expansion";
          leaf name {
            type string;
            description
              "Name of the macro to be expanded";
          }
    
          list data {
            key "name";
            uses macro-data-type;
          }  // list data
        }  // grouping apply-macro-type
    
        grouping macro-data-type {
          leaf name {
            type string;
            description
              "Keyword part of the keyword-value pair";
          }
    
          leaf value {
            type string;
            description
              "Value part of the keyword-value pair";
          }
        }  // grouping macro-data-type
      }  // module junos-ex-conf-poe
    

© 2023 YumaWorks, Inc. All rights reserved.