Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #724 from cisco-open/fix/get_devices_health
Browse files Browse the repository at this point in the history
Fix get_devices_health()
  • Loading branch information
jpkrajewski authored Jun 11, 2024
2 parents 387376c + e8a0f29 commit e72b66c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion catalystwan/utils/reachability.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Copyright 2022 Cisco Systems, Inc. and its affiliates
# Copyright 2024 Cisco Systems, Inc. and its affiliates

from enum import Enum


class Reachability(str, Enum):
REACHABLE = "reachable"
UNREACHABLE = "unreachable"
UNKNOWN = "unknown"

@classmethod
def _missing_(cls, value):
# Value emitted by Manager ver. 20.10 can be None
return cls.UNKNOWN

0 comments on commit e72b66c

Please sign in to comment.