aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_scripts/lisp/lispgpe_check.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-06-16 12:58:22 +0200
committerPeter Mikus <pmikus@cisco.com>2021-06-17 08:52:52 +0000
commit9d14c2d71ce85fe95aa9a2321738abb25d032b0c (patch)
treea10432f7875a02258be0b370f2f37346e3657810 /GPL/traffic_scripts/lisp/lispgpe_check.py
parent6da5a6920171682bd5bf6a77517bedfef91cbd0e (diff)
Traffic scripts: Fix docstrings
The IP address checking functions do not raise the exceptions listed, they except them and return False. Change-Id: I74e52b65bac99c8ca8679d4cc6395067ccc6a961 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'GPL/traffic_scripts/lisp/lispgpe_check.py')
-rw-r--r--GPL/traffic_scripts/lisp/lispgpe_check.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/GPL/traffic_scripts/lisp/lispgpe_check.py b/GPL/traffic_scripts/lisp/lispgpe_check.py
index f8fa595867..85c85885f6 100644
--- a/GPL/traffic_scripts/lisp/lispgpe_check.py
+++ b/GPL/traffic_scripts/lisp/lispgpe_check.py
@@ -99,7 +99,6 @@ def valid_ipv4(ip_address):
:type ip_address: str
:returns: True if IP address is correct.
:rtype: bool
- :raises AttributeError, AddressValueError: If IP address is not valid.
"""
try:
ipaddress.IPv4Address(ip_address)
@@ -115,7 +114,6 @@ def valid_ipv6(ip_address):
:type ip_address: str
:returns: True if IP address is correct.
:rtype: bool
- :raises AttributeError, AddressValueError: If IP address is not valid.
"""
try:
ipaddress.IPv6Address(ip_address)