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

Commit

Permalink
Add default value for reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski authored and sbasan committed Jun 10, 2024
1 parent 387376c commit e8a0f29
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 e8a0f29

Please sign in to comment.