# The file is WirelessLeiden specific. Please make all changes in exodus
#
# Generated on {% now "G:i j-n-Y" %} 
# by {{ node.host }}
#
# Node: {{ node.name }}
# File: rc.node.local

hostname="{{ node.name }}.{{ node.network }}"
location="{{ node.location }} - {{ node.location.desc }}"

# Dirty hack for use by WL proxy
ifconfig_lo0_alias0="172.31.255.1/32"
# Allow masterip to be linked to lo0 interface to keep it reachable all the time
ifconfig_lo0_alias1="{{ node.masterip }}/32"

{% for nic in node.interface_set.all %}
ifconfig_{{ nic.iface }}="inet {{nic.ip}}/{{nic.netmask}}"
{% endfor %}

