Skip to content

Commit

Permalink
[sonic_fan] Add constant for fan direction (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenxs authored and jleveque committed Jan 22, 2020
1 parent 8678383 commit b11ab3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sonic_fan/fan_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
class FanBase(object):
__metaclass__ = abc.ABCMeta

# Possible fan directions (relative to port-side of device)
FAN_DIRECTION_INTAKE = "intake"
FAN_DIRECTION_EXHAUST = "exhaust"
FAN_DIRECTION_NOT_APPLICABLE = "N/A"

def get_num_fans(self):
"""
Retrieves the number of FANs supported on the device
Expand Down

0 comments on commit b11ab3d

Please sign in to comment.