Handle weird WAN configurations
Add alerts based on the following code:
{% if interface_count < 1 %}
{% include "config/_no_interface_warning.html.j2" %}
{% elif not wan_status.up %}
{% if wan_status.proto == "ppoe" %}
<div class="message warning" id="no-interface-up-warning">
{% trans %}You WAN configuration is probably not correct or your WAN interface hasn't been properly
initialized yet.{% endtrans %}
</div>
{% else %}
<div class="message warning" id="no-interface-up-warning">
{% trans %}WAN port has no link or it hasn't been configured yet. Your internet connection probably
won't work.{% endtrans %}
</div>
{% endif %}
{% elif interface_up_count < 1 %}
{% include "config/_no_interface_up_warning.html.j2" %}
{% endif %}