forked from sonic-net/sonic-platform-daemons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock_module_base.py
More file actions
18 lines (17 loc) · 770 Bytes
/
mock_module_base.py
File metadata and controls
18 lines (17 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class ModuleBase():
# Possible card types
MODULE_TYPE_SUPERVISOR = "SUPERVISOR"
MODULE_TYPE_LINE = "LINE-CARD"
MODULE_TYPE_FABRIC = "FABRIC-CARD"
# Possible card status
#Module state is Empty if no module is inserted in the slot
MODULE_STATUS_EMPTY = "Empty"
#Module state if Offline if powered down. This is also the admin-down state.
MODULE_STATUS_OFFLINE = "Offline"
#Module state is Present when it is powered up, but not fully functional.
MODULE_STATUS_PRESENT = "Present"
#Module state is Present when it is powered up, but entered a fault state.
#Module is not able to go Online.
MODULE_STATUS_FAULT = "Fault"
#Module state is Online when fully operational
MODULE_STATUS_ONLINE = "Online"