Merge lp:~rvb/maas/bug-1415538 into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3497 |
Proposed branch: | lp:~rvb/maas/bug-1415538 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
63 lines (+22/-2) 3 files modified
src/maasserver/dhcp.py (+3/-1) src/maasserver/tests/test_dhcp.py (+8/-0) src/provisioningserver/dhcp/tests/test_config.py (+11/-1) |
To merge this branch: | bzr merge lp:~rvb/maas/bug-1415538 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+247860@code.launchpad.net |
Commit message
Do not generate the 'option routers' stanza if router IP is None.
Description of the change
The main problem here is that interface.router_ip is None when "unset".
To post a comment you must log in.
On Wed, Jan 28, 2015 at 04:35:42PM -0000, Raphaël Badin wrote: /dhcp.py' dhcp.py 2014-10-03 19:29:51 +0000 dhcp.py 2015-01-28 16:35:10 +0000 interface. network. cidr), broadcast_ ip, interface, interface. router_ ip), router_ ip,
> === modified file 'src/maasserver
> --- src/maasserver/
> +++ src/maasserver/
> @@ -56,7 +56,7 @@
> 'subnet_cidr': unicode(
> 'broadcast_ip': interface.
> 'interface': interface.
> - 'router_ip': unicode(
> + 'router_ip': interface.
Should subnet_cidr above now be unicode()d as well? launchpad. net/~kiko
--
Christian Robottom Reis | [+1] 612 888 4935 | http://
Canonical VP Hyperscale | [+55 16] 9 9112 6430