2 Copyright (c) 2018 Mirantis Inc., Enea AB and others.
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Apache License, Version 2.0
6 which accompanies this distribution, and is available at
7 http://www.apache.org/licenses/LICENSE-2.0
9 {%- if conf.idf.net_config.admin is defined %}
10 {%- set pxebr_network = conf.idf.net_config.admin.network %}
11 {%- set pxebr_prefix = conf.idf.net_config.admin.mask %}
13 {%- set pxebr_network = '192.168.11.0' %}
14 {%- set pxebr_prefix = '24' %}
19 <bridge name="pxebr"/>
20 <ip address="{{ pxebr_network | ipaddr_index(1) }}" netmask="{{ pxebr_prefix | netmask }}">
21 <!-- NOTE: .254 is harcoded for now (for /24 prefix), should be computed instead. -->
23 <range start="{{ pxebr_network | ipaddr_index(4) }}" end="{{ pxebr_network | ipaddr_index(254) }}"/>