Junos poe configuration module
Version: 2019-01-01
module junos-es-conf-poe { yang-version 1; namespace "http://yang.juniper.net/junos-es/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-es-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 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 } // list interface list fpc { key "name"; ordered-by user; description "FPC configuration for power over ethernet"; leaf name { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "FPC slot number"; } uses apply-advanced; leaf maximum-power { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 500"; } } description "Maximum power(watts)"; } leaf priority { type enumeration { enum "low" { value 0; description "Priority low"; } enum "high" { value 1; description "Priority high"; } } description "Priority level(high/low)"; } } // 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-es-conf-poe
© 2023 YumaWorks, Inc. All rights reserved.