Bug fix for default network ACL entries (#2056)

* Fixed a bug where default network ACL entries could not be deleted.

* Implemented throwing error when a network entry with the same rule number and egress value already exists.

* Fixed syntax errors.

* Added socket.timeout to possibly raised exceptions in wait_for for Python 3.
This commit is contained in:
Bendegúz Ács 2019-05-26 03:02:14 +02:00 committed by Terry Cain
commit 21917c4b93
4 changed files with 55 additions and 6 deletions

View file

@ -12,8 +12,9 @@ except ImportError:
# py3
import urllib.request as urllib
from urllib.error import URLError
import socket
EXCEPTIONS = (URLError, ConnectionResetError)
EXCEPTIONS = (URLError, socket.timeout, ConnectionResetError)
start_ts = time.time()