Ignore:
Timestamp:
Jan 7, 2009, 3:56:56 AM (17 years ago)
Author:
roland
Message:

worked on ethernet to wifi bridges, that is complete.
Would need to go through the source again to write it better.
updated initial_data.json for wandy.

Made use of limit_choices_to so that only valid foreignkeys can be
chosen, such as in the add link, or add statichost to interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/templates/viewNode.html

    r6517 r6565  
    3939        Direction: {{ nic.get_direction_display }} <br />
    4040                Mode: {{ nic.get_mode_display }} <br>
     41        {% if nic.ethernet_to_wifi %}
     42            Bridge: {{ nic.ethernet_to_wifi.type }} <br />
     43        {% endif %}
    4144        {% endifnotequal %}
    4245    {% if user.is_authenticated %}
     
    4548    {% endif %}
    4649        </div>
    47 
     50    {% for static in nic.dhcpstatic_set.all %}
     51        <ul><ul>
     52        <li>Hostname: {{ static.hostname }}</li>
     53        <li>Macaddress: {{ static.macaddress }}</li>
     54        <li>IP: {{ static.ipaddress}}</li>
     55        </ul></ul>
     56    {% endfor %}   
    4857        {% for interlink in nic.link.interface_set.all %}
    4958                {% ifnotequal interlink nic %}
     
    5362                <li>Link Name: {{ interlink }}</li>
    5463                <li>IP: {{ interlink.ip }}/{{ interlink.netmask }} </li>
     64        {% for static in interlink.dhcpstatic_set.all %}
     65            <br />
     66            <ul>
     67            <li>Hostname: {{ static.hostname }}</li>
     68            <li>Macaddress: {{ static.macaddress }}</li>
     69            <li>IP: {{ static.ipaddress}}</li>
     70            </ul>
     71        {% endfor %}   
    5572                </ul>
    5673                {% endifnotequal %}
Note: See TracChangeset for help on using the changeset viewer.