~ltrager/maas/remove_di_from_kernel_opts

« back to all changes in this revision

Viewing changes to src/provisioningserver/templates/dhcp/dhcpd6.conf.template

  • Committer: Lee Trager
  • Date: 2016-10-22 06:06:12 UTC
  • mfrom: (5457.1.44 maas)
  • Revision ID: lee.trager@canonical.com-20161022060612-ukar20f6ffs45nas
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#
9
9
# Global DHCP snippets
10
10
#
 
11
{{if len(global_dhcp_snippets) == 0}}
 
12
# No global DHCP snippets defined
 
13
{{endif}}
11
14
{{for global_dhcp_snippet in global_dhcp_snippets}}
12
15
# Name: {{global_dhcp_snippet['name']}}
13
16
{{if global_dhcp_snippet['description'] != ''}}
47
50
           option dhcp6.sntp-servers {{dhcp_subnet['ntp_servers_ipv6']}};
48
51
           {{endif}}
49
52
 
50
 
           default-lease-time 600;
51
 
           max-lease-time 600;
 
53
           default-lease-time 1800;
 
54
           max-lease-time 1800;
52
55
           #
53
56
           # Subnet DHCP snippets
54
57
           #
 
58
           {{if len(dhcp_subnet['dhcp_snippets']) == 0}}
 
59
           # No DHCP snippets defined for subnet
 
60
           {{endif}}
55
61
           {{for dhcp_snippet in dhcp_subnet['dhcp_snippets']}}
56
62
           # Name: {{dhcp_snippet['name']}}
57
63
           {{if dhcp_snippet['description'] != ''}}
58
64
           # Description: {{dhcp_snippet['description'] | oneline}}
59
65
           {{endif}}
60
 
           {{dhcp_snippet['value']}}
 
66
           {{for line in dhcp_snippet['value'].splitlines()}}
 
67
           {{line}}
 
68
           {{endfor}}
61
69
           {{endfor}}
62
70
 
63
71
           {{for pool in dhcp_subnet['pools']}}
79
87
   #
80
88
   # Node DHCP snippets
81
89
   #
 
90
   {{if len(host['dhcp_snippets']) == 0}}
 
91
   # No DHCP snippets defined for host
 
92
   {{endif}}
82
93
   {{for dhcp_snippet in host['dhcp_snippets']}}
83
94
   # Name: {{dhcp_snippet['name']}}
84
95
   {{if dhcp_snippet['description'] != ''}}
85
96
   # Description: {{dhcp_snippet['description'] | oneline}}
86
97
   {{endif}}
87
 
   {{dhcp_snippet['value']}}
 
98
   {{for line in dhcp_snippet['value'].splitlines()}}
 
99
   {{line}}
 
100
   {{endfor}}
88
101
   {{endfor}}
89
102
 
90
103
   hardware ethernet {{host['mac']}};