.. _dellemc.enterprise_sonic.sonic_poe_module: ********************************** dellemc.enterprise_sonic.sonic_poe ********************************** **Manage PoE configuration on SONiC** Version added: 2.5.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module provides configuration management of PoE at global and card level for devices running SONiC Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
config
dictionary
Specifies PoE configurations
cards
list / elements=dictionary
PoE card (power controller hardware) configuration.
currently not supported on platforms.
auto_reset
boolean
    Choices:
  • no
  • yes
enable PoE auto reset mode for this card
card_id
integer / required
Identifier for the card.
must be number in range of 0-7.
power_mgmt_model
string
    Choices:
  • dynamic
  • dynamic-priority
  • static
  • static-priority
  • class
the power management algorithm.
dynamic means that power consumption of each port is measured and calculated in real-time.
static means that power allocated for each port depends on the type of power threshold configured on the port
usage_threshold
integer
Inline power usage threshold.
Range is 0-99 inclusive
global
dictionary
configuration for global PoE card
auto_reset
boolean
    Choices:
  • no
  • yes
enable PoE auto reset mode for global.
currently not supported on platforms.
power_mgmt_model
string
    Choices:
  • dynamic
  • dynamic-priority
  • static
  • static-priority
  • class
the power management algorithm to use.
dynamic means that power consumption of each port is measured and calculated in real-time.
static means that power allocated for each port depends on the type of power threshold configured on the port.
currently only 'dynamic' and 'class' values are supported
usage_threshold
integer
Inline power usage threshold.
Range is 0-99 inclusive.
currently not supported on platforms.
interfaces
list / elements=dictionary
PoE configuration for ethernet interfaces
detection
string
    Choices:
  • 2pt-dot3af
  • 2pt-dot3af+legacy
  • 4pt-dot3af
  • 4pt-dot3af+legacy
  • dot3bt
  • dot3bt+legacy
  • legacy
Device detection mechanism performed by this PSE port.
Legacy is capacitive detection scheme, which can be used alone or as a backup if other detection schemes fail.
Those schemes are IEEE 802 standard schemes.
None cannot be forcibly set by adminstrator.
currently only 'dot3bt' and 'dot3bt+legacy' values are supported
disconnect_type
string
    Choices:
  • ac
  • dc
PoE port disconnect type.
currently not supported on platforms.
enabled
boolean
    Choices:
  • no
  • yes
enable PoE per port
four_pair
boolean
    Choices:
  • no
  • yes
Enables four pair mode for port.
currently not supported on platforms.
high_power
boolean
    Choices:
  • no
  • yes
Enables high power mode on a PSE port.
currently not supported on platforms.
name
string / required
Name of the interface
power_classification
string
    Choices:
  • normal
  • bypass
PoE power-classification mode for port.
currently not supported on platforms.
power_limit
integer
The configured maximum power this port can provide to an attached device measured in Milliwatts.
Range is 0-99900 inclusive.
currently not supported on platforms.
power_limit_type
string
    Choices:
  • class-based
  • user-defined
Controls the maximum power that a port can deliver.
class-based means that the port power limit is as per the dot3af class of the powered device attached.
user-defined means limit is specified by config.
currently not supported on platforms.
power_pairs
string
    Choices:
  • signal
  • spare
PoE port power-pairs settings.
currently not supported on platforms.
power_up_mode
string
    Choices:
  • dot3af
  • dot3at
  • dot3bt
  • dot3bt-type3
  • dot3bt-type4
  • high-inrush
  • pre-dot3at
  • pre-dot3bt
The mode configured for a PSE port to deliver high power.
pre-dot3at means that a port is powered in the IEEE 802.3af mode initially, switched to the high-power IEEE 802.3at mode.
dot3at means that a port is powered in the IEEE 802.3at mode.
dot3bt, type3 and pre-dot3bt are to support 802.3bt interfaces.
currently not supported on platforms.
priority
string
    Choices:
  • low
  • medium
  • high
  • critical
PoE port priority in power management algorithm.
Priority could be used by a control mechanism that prevents over current situations by disconnecting ports with lower power priority first.
currently only 'low', 'high' and 'critical' values are supported
use_spare_pair
boolean
    Choices:
  • no
  • yes
Enables spare pair power for port.
currently not supported on platforms.
state
string
    Choices:
  • merged ←
  • deleted
  • replaced
  • overridden
The state of the configuration after module completion

Examples -------- .. code-block:: yaml # Using "merged" state to add or change poe global settings # Before state: # config: # global: # auto_reset: false # Example: - name: "add poe global settings" sonic_poe: config: global: auto_reset: true power_mgmt_model: 'class' usage_threshold: 300 state: merged # After state: # config: # global: # auto_reset: true # power_mgmt_model: 'class' # usage_threshold: 300 # ------ # Using "merged" state to add cards # Note that platform must support adding multiple cards to do this # Before state: # config: # global: # auto_reset: true # Example: - name: "add poe cards" sonic_poe: config: cards: - card_id: 0 usage_threshold: 39 state: merged # After state: # config: # global: # auto_reset: true # cards: # - card_id: 0 # usage_threshold: 39 # ------ # Using "merged" state to add or change card settings # Before state: # config: # cards: # - card_id: 0 # usage_threshold: 39 # Example: - name: "add poe cards settings" sonic_poe: config: cards: - card_id: 0 usage_threshold: 60 power_mgmt_model: dymanic state: merged # After state: # config: # cards: # - card_id: 0 # usage_threshold: 60 # power_mgmt_model: dymanic # ------ # Using "merged" state to add interfaces # Before state: # config: {} # Example: - name: "add poe interfaces" sonic_poe: config: interfaces: - name: Ethernet0 enabled: true state: merged # After state: # config: # interfaces: # - name: Ethernet0 # enabled: true # ------ # Using "merged" state to add or change interface settings # Before state: # config: # interfaces: # - name: Ethernet0 # enabled: true # disconnect_type: dc # Example: - name: "add poe interface settings" sonic_poe: config: interfaces: - name: Ethernet0 four_pair: true high_power: true detection: dot3bt power_classification: normal power_limit: 5000 power_limit_type: class-based power_pairs: signal power_up_mode: dot3bt priority: medium use_spare_pair: false disconnect_type: ac state: merged # After state: # config: # interfaces: # - name: Ethernet0 # four_pair: true # high_power: true # detection: dot3bt # power_classification: normal # power_limit: 5000 # power_limit_type: class-based # power_pairs: signal # power_up_mode: dot3bt # priority: medium # use_spare_pair: false # disconnect_type: ac # enabled: true # ------ # Using "deleted" state to remove poe global settings # Before state: # config: # global: # auto_reset: true # power_mgmt_model: 'class' # usage_threshold: 300 # Example: - name: "delete matching poe global settings" sonic_poe: config: global: auto_reset: false usage_threshold: 300 state: deleted # After state: # config: # global: # power_mgmt_model: 'class' # auto_reset: true # ------ # Using "deleted" state to delete cards or card settings # Note: to delete whole card, either need just the name or specify all current settings and values # Before state: # config: # global: # auto_reset: true # cards: # - card_id: 0 # usage_threshold: 39 # - card_id: 1 # auto_reset: true # usage_threshold: 60 # power_mgmt_model: class # - card_id: 2 # usage_threshold: 39 # power_mgmt_model: dymanic # Example: - name: "delete poe cards" sonic_poe: config: cards: - card_id: 0 - card_id: 1 auto_reset: true usage_threshold: 60 power_mgmt_model: class - card_id: 2 usage_threshold: 39 power_mgmt_model: static state: deleted # After state: # config: # global: # auto_reset: true # cards: # - card_id: 2 # power_mgmt_model: dymanic # ------ # Using "deleted" state to delete interfaces or interface settings # Note: to delete whole interface, either need just the name or specify all current settings and values # Before state: # config: # interfaces: # - name: Ethernet0 # enabled: true # - name: Ethernet1 # enabled: false # four_pair: true # - name: Ethernet2 # detection: 4pt-dot3af+legacy # power_up_mode: dot3bt # use_spare_pair: true # Example: - name: "delete poe interfaces" sonic_poe: config: interfaces: - name: Ethernet0 - name: Ethernet1 enabled: false four_pair: true - name: Ethernet2 detection: 4pt-dot3af+legacy power_up_mode: pre-dot3at state: deleted # After state: # config: # interfaces: # - name: Ethernet2 # power_up_mode: dot3bt # use_spare_pair: true # ------ # Using "deleted" state to clear all interfaces or cards # Before state: # config: # cards: # - card_id: 0 # usage_threshold: 39 # interfaces: # - name: Ethernet0 # enabled: true # Example: - name: "clear poe interfaces and cards" sonic_poe: config: interfaces: [] cards: [] state: deleted # After state: # config: {} # ------ # Using "deleted" state to delete attributes of interfaces or cards # Before state: # config: # cards: # - card_id: 1 # auto_reset: true # usage_threshold: 60 # interfaces: # - name: Ethernet1 # enabled: false # four_pair: true # power_classification: normal # Example: - name: "clear poe interfaces and cards" sonic_poe: config: interfaces: - name: Ethernet1 four_pair: true cards: - card_id: 1 usage_threshold: 60 state: deleted # After state: # config: # interfaces: # - name: Ethernet1 # enabled: false # power_classification: normal # cards: # - card_id: 1 # auto_reset: true # ------ # Using "overridden" state to set poe config # Before state: # config: # global: # auto_reset: true # power_mgmt_model: 'class' # usage_threshold: 300 # interfaces: # - name: Ethernet1 # power_classification: normal # enabled: true # cards: # - card_id: 0 # usage_threshold: 60 # power_mgmt_model: dymanic # Example: - name: "overridden to exactly specified" sonic_poe: config: global: auto_reset: false interfaces: - name: Ethernet0 enabled: true disconnect_type: ac - name: Ethernet1 power_pairs: signal state: overridden # After state: # config: # global: # auto_reset: false # interfaces: # - name: Ethernet0 # disconnect_type: ac # enabled: true # - name: Ethernet1 # power_pairs: signal # ------ # Using "replaced" state to replace sections of poe config # Before state: # config: # global: # auto_reset: true # power_mgmt_model: 'class' # usage_threshold: 300 # interfaces: # - name: Ethernet1 # power_classification: normal # enabled: true # - name: Ethernet0 # enabled: true # power_limit_type: class-based # cards: # - card_id: 0 # usage_threshold: 60 # power_mgmt_model: dymanic # Example: - name: "replace sections of config to exactly specified" sonic_poe: config: global: auto_reset: false interfaces: - name: Ethernet0 enabled: true disconnect_type: ac state: repalced # After state: # config: # global: # auto_reset: false # interfaces: # - name: Ethernet0 # disconnect_type: ac # enabled: true # cards: # - card_id: 0 # usage_threshold: 60 # power_mgmt_model: dymanic # ------ Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
after
dictionary
when changed
The resulting configuration after module invocation.

Sample:
The configuration returned will always be in the same format as the parameters above.
before
dictionary
always
The configuration prior to the module invocation.

Sample:
The configuration returned will always be in the same format as the parameters above.
commands
list
always
The set of commands pushed to the remote device.

Sample:
['command 1', 'command 2', 'command 3']


Status ------ Authors ~~~~~~~ - S\. Talabi (@stalabi1), Xiao Han (@Xiao_Han2)