~ubuntu-branches/ubuntu/trusty/horizon/trusty

« back to all changes in this revision

Viewing changes to horizon/dashboards/nova/networks/urls.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-09 11:50:22 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120309115022-ymiww5i58rbg97my
Tags: 2012.1~rc1~20120308.1479-0ubuntu1
* New upstream version.
* debian/rules: Fix symlink when installing horizon.
  (LP: #947118)
* debian/control: Add python-django-nose as a dep. (LP: #944235)
* debian/control: Fix broken depends.

Show diffs side-by-side

added added

removed removed

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