Skip to content

Commit

Permalink
Raise ConnectionError if unable to collect IPEndpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Jan 16, 2018
1 parent afe6224 commit d9ba746
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acitoolkit/acitoolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import copy

from requests.compat import urlencode
from requests.exceptions import ConnectionError

from .acibaseobject import BaseACIObject, BaseInterface, _Tag
from .aciphysobject import Interface, Fabric
Expand Down Expand Up @@ -5698,6 +5699,8 @@ def get_all_by_epg(cls, session, tenant_name, app_name, epg_name):
endpoint.ip = ep_addr
endpoint.mac = IPEndpoint._get_mac_from_dn(ep_dn)
endpoints.append(endpoint)
else:
raise ConnectionError
return endpoints


Expand Down

0 comments on commit d9ba746

Please sign in to comment.