Skip to content

Commit

Permalink
Add func for getting current poe state
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed May 31, 2023
1 parent be82b5b commit d8261e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/nav/portadmin/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ def set_poe_state(self, interface: manage.Interface, state: int):
"""
raise NotImplementedError

def get_poe_state(self, interface: manage.Interface) -> int:
"""Returns current poe state"""
raise NotImplementedError


class ManagementError(Exception):
"""Base exception class for device management errors"""
Expand Down

0 comments on commit d8261e3

Please sign in to comment.