[2.0rc4] multiple lines of DHCP snippets are not properly indented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Unassigned |
Bug Description
Putting DHCP snippets as:
====
default-lease-time 1200;
max-lease-time 1200;
====
will be rendered as below (the second line is not properly indented). From DHCPD perspective, it looks like a valid config, but would be nice to be indented for readability as a wishlist.
#
# Networks
#
shared-network vlan-5001 {
subnet 192.168.100.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.100.255;
option domain-name-servers 192.168.100.1;
option domain-name "maas";
option routers 192.168.100.1;
option ntp-servers ntp.ubuntu.com;
#
# Subnet DHCP snippets
#
# Name: lease time
max-lease-time 1200;
pool {
range 192.168.100.201 192.168.100.230;
}
}
}
Related branches
- Gavin Panella (community): Approve
-
Diff: 103 lines (+30/-4)2 files modifiedsrc/provisioningserver/templates/dhcp/dhcpd.conf.template (+15/-2)
src/provisioningserver/templates/dhcp/dhcpd6.conf.template (+15/-2)
Changed in maas: | |
milestone: | none → 2.1.0 |
no longer affects: | maas/2.0 |