OpenStack Dashboard (Horizon)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 1.5KB

123456789101112131415161718192021222324252627282930313233343536
  1. # vim: tabstop=4 shiftwidth=4 softtabstop=4
  2. # Copyright 2012 United States Government as represented by the
  3. # Administrator of the National Aeronautics and Space Administration.
  4. # All Rights Reserved.
  5. #
  6. # Copyright 2012 Nebula, Inc.
  7. #
  8. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  9. # not use this file except in compliance with the License. You may obtain
  10. # a copy of the License at
  11. #
  12. # http://www.apache.org/licenses/LICENSE-2.0
  13. #
  14. # Unless required by applicable law or agreed to in writing, software
  15. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  16. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  17. # License for the specific language governing permissions and limitations
  18. # under the License.
  19. from django.conf.urls.defaults import patterns, url
  20. from .views import (IndexView, CreateView, RenameView,
  21. DetailView, CreatePortView, AttachPortView)
  22. urlpatterns = patterns('horizon.dashboards.nova.networks.views',
  23. url(r'^$', IndexView.as_view(), name='index'),
  24. url(r'^create/$', CreateView.as_view(), name='create'),
  25. url(r'^(?P<network_id>[^/]+)/detail/$', DetailView.as_view(),
  26. name='detail'),
  27. url(r'^(?P<network_id>[^/]+)/rename/$', RenameView.as_view(),
  28. name='rename'),
  29. url(r'^(?P<network_id>[^/]+)/ports/create/$', CreatePortView.as_view(),
  30. name='port_create'),
  31. url(r'^(?P<network_id>[^/]+)/ports/(?P<port_id>[^/]+)/attach/$',
  32. AttachPortView.as_view(), name='port_attach'))