@@ -128,12 +128,23 @@ class EntityView(MultiplePermissionsRequ
# Call the parent class method.
context = super(DetailView, self).get_context_data(**kwargs)
# Add the rendered iptables rules to the context.
context['entity_iptables'] = generate_entity_iptables(self.object)
# Add the incoming and outgoing commmunication to the context.
context["incoming_communications"] = self.object.incoming_communications()
context["outgoing_communications"] = self.object.outgoing_communications()
# Add the interfaces to the context.
context["interfaces"] = self.object.interface_set.all().order_by("name")
# Add project/location to the context.
context["project"] = self.object.project
context["location"] = self.object.location
return context
@permission_required("conntrackt.view", raise_exception=True)
def entity_iptables(request, pk):
"""