def get(self, request): """ Get the all Network Functions Forwarding Graph """ try: nffgs = API.getNF_FGraphs() if nffgs is None: return HttpResponse(status=404) return Response(data=nffgs) except: return HttpResponse(status=400)
def get(self, request, nf_fgraph_id): """ Get the Network Functions Forwarding Graph """ try: nffg = API.getNF_FGraphs(nf_fgraph_id) if nffg is None: return HttpResponse(status=404) return Response(data=nffg) except: return HttpResponse(status=400)