Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions networkapi/ambiente/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2130,9 +2130,6 @@ def get(self, cidr_id=None, env_id=None):
objects = EnvCIDR.objects.filter(id_env=env_id)
if not objects:
log.debug('There is no CIDR linked with the environment id=%s.' % env_id)
raise ObjectDoesNotExist
except ObjectDoesNotExist:
raise CIDRErrorV3('There is no CIDR linked with the environment id=%s.' % env_id)
except OperationalError as e:
self.log.error('Lock wait timeout exceeded.')
raise OperationalError(e, 'Lock wait timeout exceeded; try restarting transaction')
Expand Down
4 changes: 2 additions & 2 deletions networkapi/ip/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def patch_v3(self, networkv4, locks_used=[], force=False):
locks_list = create_lock_with_blocking(locks_name)

try:
self.validate_v3()
#self.validate_v3()
self.save()

except NetworkIPv4ErrorV3, e:
Expand Down Expand Up @@ -3319,7 +3319,7 @@ def patch_v3(self, networkv6, locks_used=[], force=False):
locks_list = create_lock_with_blocking(locks_name)

try:
self.validate_v3()
#self.validate_v3()
self.save()

except NetworkIPv6ErrorV3, e:
Expand Down
Loading