예제 #1
0
def import_files(request):
    page_message = "success"
    try:
        arp.import_all()
    except RuntimeError as err:
        page_message = err

    return render(request, 'arpwatch/import.html', {'page_message': page_message})
예제 #2
0
def import_files(request):
    page_message = "success"
    try:
        arp.import_all()
    except RuntimeError as err:
        page_message = err

    return render(request, 'arpwatch/import.html', {'page_message': page_message})
예제 #3
0
파일: views.py 프로젝트: masmitja/nadine
def import_files(request):
    page_message = "success"
    try:
        arp.import_all()
    except RuntimeError as err:
        page_message = err

    return render_to_response('arpwatch/import.html', {'page_message': page_message}, context_instance=RequestContext(request))
예제 #4
0
def import_files(request):
    page_message = "success"
    try:
        arp.import_all()
    except RuntimeError as err:
        page_message = err

    return render_to_response('arpwatch/import.html',
                              {'page_message': page_message},
                              context_instance=RequestContext(request))
예제 #5
0
 def handle(self, *args, **options):
     arp.import_all()
     arp.map_ip_to_mac(1)
예제 #6
0
 def handle_noargs(self, **options):
     arp.import_all()
     arp.map_ip_to_mac(1)
예제 #7
0
def import_arp():
    from arpwatch import arp
    arp.import_all()
    #arp.import_snmp()
    arp.map_ip_to_mac(1)
예제 #8
0
def import_arp():
    from arpwatch import arp
    arp.import_all()
    #arp.import_snmp()
    arp.map_ip_to_mac(1)