summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/app/rest_router.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index e0ca1bfd..26443a64 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -1831,6 +1831,8 @@ def ipv4_int_to_text(ip_int):
def ipv4_text_to_int(ip_text):
+ if ip_text == 0:
+ return ip_text
assert isinstance(ip_text, str)
return struct.unpack('!I', addrconv.ipv4.text_to_bin(ip_text))[0]