{% extends 'template.html' %} {% block title %}Configuration{% end %} {% block body %} {% if legs %}

Legs

{% for leg in legs %}
{% if leg['type'] == 'mobilebroadband' %}
Modem
{% if leg['config']['imei'] %} IMEI {{ leg['config']['imei'] }} {% else %} Any modem {% end %}
{% else %}
Interface
{{ leg['ifname'] }}
{% end %}
Type
{% if leg['type'] == 'interface' %} Interface {% elif leg['type'] == 'mobilebroadband' %} Mobile broadband {% else %} {{ leg['type'] }} {% end %}
Status
{{ leg_label_content(leg) }}
{% end %} {% end %} {% if connected_ips %}

Connected IPs

{% for connected_ip in connected_ips %}
IP
{{ connected_ip['config']['ip'] }}
Interface
{{ connected_ip['ifname'] }}
{% end %} {% end %} {% if cpe_nat_ips %}

CPE NAT IPs

{% for cpe_nat_ip in cpe_nat_ips %}
IP
{{ cpe_nat_ip['config']['ip'] }}
Destination NAT IP
{{ cpe_nat_ip['config']['dest_nat_ip'] }}
{% end %} {% end %} {% if routes %}

Routes

{% for route in routes %}
Network
{{ route['config']['network'] }}
Via
{{ route['config']['via'] }}
{% end %} {% end %} {% end %} {% block scripts %} {% end %}