Commit 298e85b1 by Bence Dányi

firewall_gui: more generic urls

parent f680a995
......@@ -94,15 +94,6 @@ urlpatterns = patterns('',
url(r'^accounts/(?P<site>profile)/$', 'one.views.sites'),
url(r'^firewall/$', 'firewall_gui.views.index'),
url(r'^firewall/rules/$', 'firewall_gui.views.list_rules'),
url(r'^firewall/hosts/$', 'firewall_gui.views.list_hosts'),
url(r'^firewall/vlans/$', 'firewall_gui.views.list_vlans'),
url(r'^firewall/vlangroups/$', 'firewall_gui.views.list_vlangroups'),
url(r'^firewall/hostgroups/$', 'firewall_gui.views.list_hostgroups'),
url(r'^firewall/firewalls/$', 'firewall_gui.views.list_firewalls'),
url(r'^firewall/domains/$', 'firewall_gui.views.list_domains'),
url(r'^firewall/records/$', 'firewall_gui.views.list_records'),
url(r'^firewall/blacklists/$', 'firewall_gui.views.list_blacklists'),
url(r'^firewall/rules/(?P<id>\d+)/$', 'firewall_gui.views.show_rule'),
url(r'^firewall/hosts/(?P<id>\d+)/$', 'firewall_gui.views.show_host'),
......@@ -110,6 +101,8 @@ urlpatterns = patterns('',
url(r'^firewall/vlangroups/(?P<id>\d+)/$', 'firewall_gui.views.show_vlangroup'),
url(r'^firewall/hostgroups/(?P<id>\d+)/$', 'firewall_gui.views.show_hostgroup'),
url(r'^firewall/(?P<name>\w+)/$', 'firewall_gui.views.list_entities'),
url(r'^firewall/autocomplete/(?P<entity>\w+)/$', 'firewall_gui.views.autocomplete'),
url(r'^firewall/rules/save/$', 'firewall_gui.views.save_rule'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment