Exemple #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")
Exemple #2
0
 def handle(self, *args, **options):
     print(generate_dhcp_config())
Exemple #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")