diff --git a/conntrackt/views.py b/conntrackt/views.py --- a/conntrackt/views.py +++ b/conntrackt/views.py @@ -131,6 +131,17 @@ class EntityView(MultiplePermissionsRequ # 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