Skip to content

Commit 3fed06a

Browse files
author
Ritwick DSouza
committed
[raspbian] Modifed template for updfated intermediate_data
1 parent b5d6922 commit 3fed06a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

netjsonconfig/backends/raspbian/templates/raspbian.jinja2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ auto {{ interface.get('ifname') }}
2020
{% if address.get('proto') == 'static' %}
2121
{% if address.get('family') == 'ipv4' %}
2222
iface {{ interface.get('ifname') }} inet {{ address.get('proto') }}
23-
address {{ address.get('ipv4address') }}
24-
netmask {{ address.get('ipv4netmask') }}
23+
address {{ address.get('address') }}
24+
netmask {{ address.get('netmask') }}
2525
{% if address.get('gateway', None) != None %}
26-
gateway {{ address.get('ipv4gateway')}}
26+
gateway {{ address.get('gateway')}}
2727
{% endif %}
2828
{% if interface.get('mtu', None) != None %}
2929
mtu {{ interface.get('mtu') }}
@@ -36,8 +36,8 @@ iface {{ interface.get('ifname') }} inet {{ address.get('proto') }}
3636
{% endif %}
3737
{% elif address.get('family') == 'ipv6' %}
3838
iface {{ interface.get('ifname') }} inet6 {{ address.get('proto') }}
39-
address {{ address.get('ipv6address') }}
40-
netmask {{ address.get('ipv6netmask') }}
39+
address {{ address.get('address') }}
40+
netmask {{ address.get('netmask') }}
4141
{% if address.get('gateway', None) != None %}
4242
gateway {{ address.get('ipv6gateway') }}
4343
{% endif %}

0 commit comments

Comments
 (0)