Skip to content

Commit

Permalink
Implement getting poe state for cisco
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed May 31, 2023
1 parent d8261e3 commit c3fff35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/nav/portadmin/snmp/cisco.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,5 +321,8 @@ def set_poe_state(self, interface, state):
_logger.error('%s is not a valid option for poe state', state)
raise

def get_poe_state(self, interface):
return self._query_netbox(self.poeEnable, interface.ifindex)


CHARS_IN_1024_BITS = 128

0 comments on commit c3fff35

Please sign in to comment.