Skip to content

Commit

Permalink
Gateway ip is showns as None for subnet created with gateway_ip = '0.…
Browse files Browse the repository at this point in the history
…0.0.0'

Fix _make_subnet_dict to not to update the gateway_ip
Closes-Bug: 1411796

Change-Id: Ib32160508f355e36945ae003c04d413592e40042
  • Loading branch information
bailkeri committed Jan 20, 2015
1 parent f60af34 commit 058b2a5
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -381,8 +381,6 @@ def create_subnet(self, context, subnet):
return self._make_subnet_dict(subnet_created)

def _make_subnet_dict(self, subnet):
if 'gateway_ip' in subnet and subnet['gateway_ip'] == '0.0.0.0':
subnet['gateway_ip'] = None
return subnet

def _get_subnet(self, context, subnet_id, fields=None):
Expand Down

0 comments on commit 058b2a5

Please sign in to comment.