~ubuntu-branches/ubuntu/utopic/horizon/utopic-updates

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/networks/subnets/tabs.py

  • Committer: Package Import Robot
  • Author(s): James Page, Chris Johnston, James Page
  • Date: 2014-10-03 17:54:18 UTC
  • mfrom: (0.4.1) (1.1.44) (70.1.2 utopic)
  • Revision ID: package-import@ubuntu.com-20141003175418-1jomx0azdvnl5fxz
Tags: 1:2014.2~rc1-0ubuntu1
[ Chris Johnston ]
* d/theme/css/ubuntu.css: Fix Ubuntu theme for Instances "more" dropdown
  (LP: #1308651).

[ James Page ]
* New upstream release candidate:
  - d/p/*: Refresh.
* d/watch: Use tarballs.openstack.org for upstream releases. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from horizon import tabs
20
20
 
21
21
from openstack_dashboard import api
 
22
from openstack_dashboard.dashboards.project.networks.subnets import utils
22
23
 
23
24
 
24
25
class OverviewTab(tabs.Tab):
34
35
            redirect = reverse('horizon:project:networks:index')
35
36
            msg = _('Unable to retrieve subnet details.')
36
37
            exceptions.handle(request, msg, redirect=redirect)
 
38
        if subnet.ip_version == 6:
 
39
            ipv6_modes = utils.get_ipv6_modes_menu_from_attrs(
 
40
                subnet.ipv6_ra_mode, subnet.ipv6_address_mode)
 
41
            subnet.ipv6_modes_desc = utils.IPV6_MODE_MAP.get(ipv6_modes)
37
42
        return {'subnet': subnet}
38
43
 
39
44