Changeset 6242


Ignore:
Timestamp:
Sep 3, 2008, 3:11:38 PM (16 years ago)
Author:
roland
Message:

added comment about omni check.
used {% now %} in template, no need to use object.date in views.py

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • TODO

    r6238 r6242  
    2323        ->Put correct modes on NIC
    2424        ->Check that: freeinterlinkip() works going from 17.16.0.255 to 172.16.1.0
     25        ->Check if 1 has an omni, omni needs to be master
    2526       
    2627
  • exodus/templates/dhcpd.conf

    r6192 r6242  
    11# The file is WirelessLeiden specific. Please make all changes in exodus
    22#
    3 # Generated on {{ object.date.day }}-{{ object.date.month }}-{{ object.date.year }}
     3# Generated on {% now "G:i j-n-Y" %}
    44# by {{ object.host }}
    55#
  • exodus/templates/named.conf

    r6215 r6242  
    11# The file is WirelessLeiden specific. Please make all changes in exodus
    22#
    3 # Generated on {{ object.date.day }}-{{ object.date.month }}-{{ object.date.year }}
     3# Generated on {% now "G:i j-n-Y" %}
    44# by {{ object.host }}
    55#
  • exodus/templates/rc-local.txt

    r6183 r6242  
    11# The file is WirelessLeiden specific. Please make all changes in exodus
    22#
    3 # Generated on {{ object.date.day }}-{{ object.date.month }}-{{ object.date.year }}
     3# Generated on {% now "G:i j-n-Y" %}
    44# by {{ object.host }}
    55#
  • exodus/templates/rc-node-local.txt

    r6183 r6242  
    11# The file is WirelessLeiden specific. Please make all changes in exodus
    22#
    3 # Generated on {{ object.date.day }}-{{ object.date.month }}-{{ object.date.year }}
     3# Generated on {% now "G:i j-n-Y" %}
    44# by {{ object.host }}
    55#
  • exodus/templates/resolv.conf

    r6241 r6242  
    22# next door interlink nighboors to be specified, in case of own DNS failures
    33#
    4 # Generated on {{ object.date.day }}-{{ object.date.month }}-{{ object.date.year }}
     4# Generated on {% now "G:i j-n-Y" %}
    55# by {{ object.host }}
    66#
  • exodus/views.py

    r6239 r6242  
    55from django.shortcuts import render_to_response
    66from django import forms
    7 from datetime import datetime
    87from socket import gethostname
    98
     
    105104                                return render_to_response('addinterlink.html',{'form': form, 'error_message' : errorMessage })
    106105                        #XXX :if wifi: check master and managed states for existings NICs/Interlinks
     106                        #XXX :check if omni, than Nic must be in master mode
    107107                        #Generate SSID
    108108                        # add descriptions
     
    145145
    146146        #Some extra values for statictics info
    147         object.date = datetime.now()
    148147        object.name = Node.objects.get(pk=object_id).name
    149148        object.host = gethostname()
     
    170169    object_id = nodename_to_id(object_id)
    171170    object = Node.objects.get(pk=object_id)
    172     object.date = datetime.now()
    173171    object.name = Node.objects.get(pk=object_id).name
    174172    object.host = gethostname()
     
    193191        object_id = nodename_to_id(object_id)
    194192
    195         object.date = datetime.now()
    196193        object.name = Node.objects.get(pk=object_id).name
    197194        object.host = gethostname()
     
    208205       
    209206        object = Node.objects.get(pk=object_id).nic_set.all()
    210         object.date = datetime.now()
    211207        object.name = Node.objects.get(pk=object_id).name
    212208        object.host = gethostname()
     
    224220       
    225221        object = Node.objects.get(pk=object_id).nic_set.all()
    226         object.date = datetime.now()
    227222        object.name = Node.objects.get(pk=object_id).name
    228223        object.host = gethostname()
Note: See TracChangeset for help on using the changeset viewer.