Beispiel #1
0
def dhcp_config(request):
    if not api.is_authenticated(request):
        return HttpResponseForbidden('API key required.')
    return HttpResponse(generate_dhcp_config(), content_type="text/plain")
Beispiel #2
0
 def handle(self, *args, **options):
     print(generate_dhcp_config())
Beispiel #3
0
def dhcp_config(request):
    if not api.is_authenticated(request):
        return HttpResponseForbidden('API key required.')
    return HttpResponse(generate_dhcp_config(), content_type="text/plain")