blob: 578c89fbaae46cdfc8823618b16dfbf1e6caed48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{% set ethid = 0 %}
{% for net in opnfv.spaces %}
{% if net.type!='external' %}
{% set net_prefix = net.cidr[:-4] %}
- broadcast_ip: {{ net_prefix }}255
device: eth{{ ethid }}
dynamic_range:
high: {{ net_prefix }}250
low: {{ net_prefix }}81
ip: {{ net_prefix }}5
{% if net.gateway!= None %}
router_ip: {{ net.gateway }}
{% endif %}
{% if net.type!='admin' %}
management: 1
{% endif %}
static_range:
high: {{ net_prefix }}80
low: {{ net_prefix }}50
subnet_mask: 255.255.255.0
{% set ethid = ethid+1 %}
{% endif %}
{% endfor %}
|