From b11ab3d06ef7300b5116cb323e96dee7a758b7ee Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Thu, 23 Jan 2020 02:07:37 +0800 Subject: [PATCH] [sonic_fan] Add constant for fan direction (#76) --- sonic_fan/fan_base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sonic_fan/fan_base.py b/sonic_fan/fan_base.py index 6643bfa0c..aced373dd 100644 --- a/sonic_fan/fan_base.py +++ b/sonic_fan/fan_base.py @@ -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