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

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/admin/routers/extensions/routerrules/tables.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-12-05 14:39:15 UTC
  • mto: This revision was merged to the branch mainline in revision 61.
  • Revision ID: package-import@ubuntu.com-20131205143915-5u8q3kdxdw8e7maz
Tags: upstream-2014.1~b1
ImportĀ upstreamĀ versionĀ 2014.1~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright 2013,  Big Switch Networks,  Inc.
 
4
#
 
5
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
6
#    not use this file except in compliance with the License. You may obtain
 
7
#    a copy of the License at
 
8
#
 
9
#         http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
11
#    Unless required by applicable law or agreed to in writing, software
 
12
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
13
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
14
#    License for the specific language governing permissions and limitations
 
15
#    under the License.
 
16
 
 
17
from django.utils.translation import ugettext_lazy as _  # noqa
 
18
 
 
19
from horizon import tables
 
20
 
 
21
 
 
22
class RouterRulesTable(tables.DataTable):
 
23
    source = tables.Column("source", verbose_name=_("Source CIDR"))
 
24
    destination = tables.Column("destination",
 
25
                                verbose_name=_("Destination CIDR"))
 
26
    action = tables.Column("action", verbose_name=_("Action"))
 
27
    nexthops = tables.Column("nexthops", verbose_name=_("Next Hops"))
 
28
 
 
29
    class Meta:
 
30
        name = "routerrules"
 
31
        verbose_name = _("Router Rules")