Changeset 13132
- Timestamp:
- 07/11/11 12:13:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/templates/lisa/dhcpd.cmt
r12409 r13132 208 208 {% noblanklines %} 209 209 {% for iface in ifaces_cua %} 210 host {{iface.fqdn}} { 211 hardware ethernet {{iface.hwaddress}}; 212 fixed-address {{iface.ip}}; 213 option host-name "{{iface.fqdn}}"; 214 } 210 {% if iface.hwaddress != None %} 211 host {{iface.fqdn}} { 212 hardware ethernet {{iface.hwaddress}}; 213 fixed-address {{iface.ip}}; 214 option host-name "{{iface.fqdn}}"; 215 } 216 {% endif %} 215 217 {% endfor %} 216 218 {% endnoblanklines %} … … 224 226 {% noblanklines %} 225 227 {% for iface in ifaces_lisa_switches %} 228 {% if iface.hwaddress != None %} 226 229 host {{iface.fqdn}} { 227 230 filename ""; … … 230 233 option host-name "{{iface.fqdn}}"; 231 234 } 235 {% endif %} 232 236 {% endfor %} 233 237 {% endnoblanklines %} … … 241 245 {% noblanklines %} 242 246 {% for iface in ifaces_lisa_admin %} 247 {% if iface.hwaddress != None %} 243 248 {% if 'externe service' not in iface.host.roles %} 244 249 host {{iface.fqdn}} { … … 248 253 } 249 254 {% endif %} 255 {% endif %} 250 256 {% endfor %} 251 257 {% endnoblanklines %} … … 258 264 {% noblanklines %} 259 265 {% for iface in ifaces_lisa_admin %} 266 {% if iface.hwaddress != None %} 260 267 {% if 'externe service' in iface.host.roles %} 261 268 host {{iface.fqdn}} { … … 265 272 } 266 273 {% endif %} 274 {% endif %} 267 275 {% endfor %} 268 276 {% endnoblanklines %} … … 274 282 {% noblanklines %} 275 283 {% for iface in ifaces_lisa_consoles %} 276 host {{iface.fqdn}} { 277 hardware ethernet {{iface.hwaddress}}; 278 fixed-address {{iface.ip}}; 279 option host-name "{{iface.fqdn}}"; 280 } 284 {% if iface.hwaddress != None %} 285 host {{iface.fqdn}} { 286 hardware ethernet {{iface.hwaddress}}; 287 fixed-address {{iface.ip}}; 288 option host-name "{{iface.fqdn}}"; 289 } 290 {% endif %} 281 291 {% endfor %} 282 292 {% endnoblanklines %} … … 288 298 {% noblanklines %} 289 299 {% for iface in ifaces_icua %} 300 {% if iface.hwaddress != None %} 290 301 host {{iface.fqdn}} { 291 302 filename ""; … … 294 305 option host-name "{{iface.fqdn}}"; 295 306 } 307 {% endif %} 296 308 {% endfor %} 297 309 {% endnoblanklines %}
Note: See TracChangeset
for help on using the changeset viewer.