diff --git a/conntrackt/urls.py b/conntrackt/urls.py --- a/conntrackt/urls.py +++ b/conntrackt/urls.py @@ -8,6 +8,7 @@ from .views import ProjectView, ProjectC from .views import LocationCreateView, LocationUpdateView, LocationDeleteView from .views import EntityCreateView, EntityUpdateView, EntityDeleteView from .views import InterfaceCreateView, InterfaceUpdateView, InterfaceDeleteView +from .views import CommunicationCreateView, CommunicationUpdateView, CommunicationDeleteView urlpatterns = patterns( @@ -50,6 +51,13 @@ urlpatterns = patterns( # View for deleting an interface. url(r'^interface/(?P\d+)/remove/$', InterfaceDeleteView.as_view(), name="interface_delete"), + # View for creating a new communucation. + url(r'^communication/add/$', CommunicationCreateView.as_view(), name="communication_create"), + # View for updating an existing communication. + url(r'^communication/(?P\d+)/edit/$', CommunicationUpdateView.as_view(), name="communication_update"), + # View for deleting a communication. + url(r'^communication/(?P\d+)/remove/$', CommunicationDeleteView.as_view(), name="communication_delete"), + # View for rendering iptables rules for a specific entity. url(r'^entity/(?P\d+)/iptables/$', entity_iptables, name="entity_iptables"), # View for rendering zip file with iptables rules for all entities in a project.