Skip to content

Commit

Permalink
Support configuring default gw via static route command
Browse files Browse the repository at this point in the history
Change-Id: I0aa424a86718b65344f405fb4354a71a7a423c3a
Closes-Bug: #1523678
  • Loading branch information
Senthilnathan Murugappan committed Dec 7, 2015
1 parent ebcbe48 commit d0b16a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrail_provisioning/common/staticroute_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def verify_route(self):
route_fields = route.split()
flags = int(route_fields[3], 16)
destination = socket.inet_ntoa(struct.pack('I', int(route_fields[1], 16)))
if flags & 0x2 and int(route_fields[1], 16):
if flags & 0x2:
gateway = socket.inet_ntoa(struct.pack('I', int(route_fields[2], 16)))
mask = socket.inet_ntoa(struct.pack('I', int(route_fields[7], 16)))
actual_list.append('%s %s %s' %(destination, mask, gateway))
Expand Down

0 comments on commit d0b16a6

Please sign in to comment.