def details(request, id=None): """ Show the BBU details :param request: :param id: BBU ID :return: """ bbu = get_object_or_404(Bbu, id=id) ues = Ue.objects.filter(attached_to=bbu) ues = paginator(request, ues) alerts = Alert.objects.filter(nvfs=bbu) alerts = paginator(request, alerts) schedulers = Scheduler.objects.filter(nvfs=bbu) schedulers = paginator(request, schedulers) try: channel = Channel.objects.get(tx=bbu) except: channel = None context = { "user": request.user, "bbu": bbu, "ues": ues, "schedulers": schedulers, "alerts": alerts, "channel": channel } return render(request, "bbus/details.html", context)
def details(request, id=None): """ Show details about Pool with ID id :param request: :param id: :return: """ pool = get_object_or_404(Pool, id=id) bbus = Bbu.objects.filter(ns=pool) ues = Ue.objects.filter(scenario=pool.scenario) schedulers = Scheduler.objects.filter(ns=pool) schedulers = paginator(request, schedulers) alerts = Alert.objects.filter(ns=pool) alerts = paginator(request, alerts) context = { "user": request.user, "utran": pool, "ues": ues, "alerts": alerts, "bbus": bbus, "schedulers": schedulers, "url": get_current_site(request).domain.split(':')[0], } return render(request, "pools/detail.html", context)
def list(request): keys = Key.objects.filter(operator__user=request.user) keys = paginator(request, keys) context = { "user": request.user, "keys": keys, } return render(request, "keys/list.html", context)
def list(request): keys = Key.objects.filter(operator__user=request.user) keys = paginator(request, keys) context = { "user": request.user, "keys": keys, } return render(request, "keys/list.html", context)
def list(request): schedulers = Scheduler.objects.filter(operator__user=request.user) schedulers = paginator(request, schedulers) context = { "user": request.user, "schedulers": schedulers, } return render(request, "schedulers/list.html", context)
def list(request): queryset_list = Vnf.objects.filter(operator__user=request.user) queryset = paginator(request, queryset_list) context = { "user": request.user, "object_list": queryset, } return render(request, "vnfs/list.html", context)
def list(request): scenarios = Scenario.objects.filter(operator__user=request.user) scenarios = paginator(request, scenarios) context = { "user": request.user, "object_list": scenarios, } return render(request, "pools/list.html", context)
def list(request): queryset_list = Vnf.objects.filter(operator__user=request.user) queryset = paginator(request, queryset_list) context = { "user": request.user, "object_list": queryset, } return render(request, "vnfs/list.html", context)
def scenario(request, id=None): scenario = get_object_or_404(Scenario, id=id) pools = Pool.objects.filter(scenario=scenario) pools = paginator(request, pools) ues = Ue.objects.filter(scenario=scenario) schedulers = Scheduler.objects.filter(scenario=scenario) schedulers = paginator(request, schedulers) alerts = Alert.objects.filter(scenario=scenario) alerts = paginator(request, alerts) context = { "scenario": scenario, "pools": pools, "ues": ues, "schedulers": schedulers, "alerts": alerts, } return render(request, "scenarios/scenario.html", context)
def list(request): alerts = Alert.objects.filter(operator__user=request.user) alerts = paginator(request, alerts) context = { "user": request.user, "alerts": alerts, } return render(request, "alerts/list.html", context)
def list(request): scenarios = Scenario.objects.filter(operator__user=request.user) scenarios = paginator(request, scenarios) context = { "user": request.user, "object_list": scenarios, } return render(request, "pools/list.html", context)
def list(request): alerts = Alert.objects.filter(operator__user=request.user) alerts = paginator(request, alerts) context = { "user": request.user, "alerts": alerts, } return render(request, "alerts/list.html", context)
def list(request): operators = Operator.objects.filter().exclude(user__is_staff=True) operators = paginator(request, operators) context = { "user": request.user, "object_list": operators, } return render(request, "operators/list.html", context)
def list(request): operator = Operator.objects.get(user=request.user) queryset_list = Image.objects.all() queryset = paginator(request, queryset_list) context = { "operator": operator, "images": queryset, } return render(request, "images/list.html", context)
def list(request): operator = Operator.objects.get(user=request.user) queryset_list = Image.objects.all() queryset = paginator(request, queryset_list) context = { "operator": operator, "images": queryset, } return render(request, "images/list.html", context)
def details(request, id=None): pool = get_object_or_404(Pool, id=id) bbus = Bbu.objects.filter(ns=pool) ues = Ue.objects.filter(scenario=pool.scenario) schedulers = Scheduler.objects.filter(ns=pool) schedulers = paginator(request, schedulers) alerts = Alert.objects.filter(ns=pool) alerts = paginator(request, alerts) context = { "user": request.user, "utran": pool, "ues": ues, "alerts": alerts, "bbus": bbus, "schedulers": schedulers, "url": get_current_site(request).domain.split(':')[0], } return render(request, "pools/detail.html", context)
def list(request): scripts = Script.objects.filter( Q(operator__name=request.user.username) | Q(operator__name="admin")) scripts = paginator(request, scripts) context = { "user": request.user, "scripts": scripts, } return render(request, "scripts/list.html", context)
def details(request, id=None): bbu = get_object_or_404(Bbu, id=id) ues = Ue.objects.filter(attached_to=bbu) ues = paginator(request, ues) alerts = Alert.objects.filter(nvfs=bbu) alerts = paginator(request, alerts) schedulers = Scheduler.objects.filter(nvfs=bbu) schedulers = paginator(request, schedulers) try: channel = Channel.objects.get(tx=bbu) except: channel = None context = { "user": request.user, "bbu": bbu, "ues": ues, "schedulers": schedulers, "alerts": alerts, "channel": channel } return render(request, "bbus/details.html", context)
def list(request): """ List all the set up alerts :param request: :return: """ alerts = Alert.objects.filter(operator__user=request.user) alerts = paginator(request, alerts) context = { "user": request.user, "alerts": alerts, } return render(request, "alerts/list.html", context)
def list(request): """ List of availiable Pools :param request: :return: """ scenarios = Scenario.objects.filter(operator__user=request.user) scenarios = paginator(request, scenarios) context = { "user": request.user, "object_list": scenarios, } return render(request, "pools/list.html", context)