]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Update code to properly use dict returned from get_gateway.
authorCarl Baldwin <carl.baldwin@hp.com>
Fri, 28 Jun 2013 03:07:00 +0000 (03:07 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Sat, 29 Jun 2013 03:27:14 +0000 (03:27 +0000)
commit21fd100a98c152086193607cd311c2ee03b82643
treec13079abeac2f5de2b134741761c6ea6132ce910
parent5634c34f2d4e6a482e42395f6b0fc24a35ecfa61
Update code to properly use dict returned from get_gateway.

Calling get_gateway was a late addition to my code to add a default
route in the DHCP namespace.  The code did not properly handle the
dict returned from that method.  This changes it to properly extract
the 'gateway' attribute from the dict.

Change-Id: I9823a31feee7ab333c277fc6e78f366408393155
Fixes: Bug #1195543
quantum/agent/dhcp_agent.py
quantum/tests/unit/test_dhcp_agent.py