components/openstack/horizon/files/overrides.py
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Mon, 22 Jun 2015 17:12:41 -0700
changeset 4518 9d8f9947b371
parent 3998 5bd484384122
child 4695 0aecdc531b77
permissions -rw-r--r--
21299660 enable no-gateway check box now that we support it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
     1
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
#    not use this file except in compliance with the License. You may obtain
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
#    a copy of the License at
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#         http://www.apache.org/licenses/LICENSE-2.0
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
#    Unless required by applicable law or agreed to in writing, software
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#    License for the specific language governing permissions and limitations
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
#    under the License.
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
"""
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
Solaris-specific customizations for Horizon
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
"""
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    19
from openstack_dashboard.dashboards.admin.instances import tables \
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    20
    as admin_tables
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    21
from openstack_dashboard.dashboards.admin.networks.forms import CreateNetwork
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    22
from openstack_dashboard.dashboards.admin.networks.ports.forms import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    23
    CreatePort
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
from openstack_dashboard.dashboards.admin.networks.ports.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
    DeletePort, PortsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    26
from openstack_dashboard.dashboards.admin.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
    DeleteSubnet, SubnetsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    28
from openstack_dashboard.dashboards.admin.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    29
    DeleteNetwork, NetworksTable
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    30
from openstack_dashboard.dashboards.project.access_and_security.tabs import \
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    31
    AccessAndSecurityTabs, APIAccessTab, FloatingIPsTab, KeypairsTab
1989
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
    32
from \
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
    33
    openstack_dashboard.dashboards.project.images.images.tables \
1989
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
    34
    import EditImage, DeleteImage, ImagesTable, LaunchImage
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    35
from openstack_dashboard.dashboards.project.instances import tables \
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    36
    as project_tables
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    37
from openstack_dashboard.dashboards.project.instances.tabs import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    38
    InstanceDetailTabs, LogTab, OverviewTab
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    39
from openstack_dashboard.dashboards.project.instances.workflows import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    40
    create_instance
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    41
from openstack_dashboard.dashboards.project.instances.workflows import \
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    42
    update_instance
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    43
from openstack_dashboard.dashboards.project.networks.ports.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    44
    PortsTable as projectPortsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    45
from openstack_dashboard.dashboards.project.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
    DeleteSubnet as projectDeleteSubnet
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
from openstack_dashboard.dashboards.project.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
    SubnetsTable as projectSubnetsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
    CreateSubnet as projectCreateSubnet
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
    DeleteNetwork as projectDeleteNetwork
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
    NetworksTable as projectNetworksTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
from openstack_dashboard.dashboards.project.networks.workflows import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
    CreateNetworkInfoAction, CreateSubnetDetailAction, CreateSubnetInfoAction
2074
d2f9b776557a 19589672 Integration of fix for Neutron pool reverted some lines in overrides.py
Girish Moodalbail <Girish.Moodalbail@oracle.COM>
parents: 2065
diff changeset
    57
from openstack_dashboard.dashboards.project.stacks.tabs import \
d2f9b776557a 19589672 Integration of fix for Neutron pool reverted some lines in overrides.py
Girish Moodalbail <Girish.Moodalbail@oracle.COM>
parents: 2065
diff changeset
    58
    StackDetailTabs, StackEventsTab, StackOverviewTab, StackResourcesTab
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    59
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    60
# Remove 'PostCreationStep' from Project/Instances/Launch Instance
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    61
create_instance.LaunchInstance.default_steps = (
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    62
    create_instance.SelectProjectUser,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    63
    create_instance.SetInstanceDetails,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    64
    create_instance.SetAccessControls,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    65
    create_instance.SetNetwork
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    66
)
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    67
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    68
# Remove 'UpdateInstanceSecurityGroups' from
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    69
# Project/Instances/Actions/Edit Instance
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    70
update_instance.UpdateInstance.default_steps = (
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    71
    update_instance.UpdateInstanceInfo,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    72
)
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    73
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    74
# Remove 'SecurityGroupsTab' tab from Project/Access & Security
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    75
AccessAndSecurityTabs.tabs = (KeypairsTab, FloatingIPsTab, APIAccessTab)
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    76
3652
7e731a1b0b39 PSARC/2014/377 noVNC - A browser based VNC client
Niall Power <niall.power@oracle.com>
parents: 2074
diff changeset
    77
# Remove 'ConfirmResize', 'RevertResize', 'TogglePause',
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    78
# 'ToggleSuspend', 'MigrateInstance' actions from Admin/Instances/Actions
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    79
admin_tables.AdminInstancesTable._meta.row_actions = (
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    80
    admin_tables.AdminEditInstance,
3652
7e731a1b0b39 PSARC/2014/377 noVNC - A browser based VNC client
Niall Power <niall.power@oracle.com>
parents: 2074
diff changeset
    81
    project_tables.ConsoleLink,
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    82
    project_tables.LogLink,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    83
    project_tables.CreateSnapshot,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    84
    project_tables.SoftRebootInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    85
    project_tables.RebootInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    86
    project_tables.TerminateInstance
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    87
)
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    88
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    89
# Remove 'ConfirmResize', 'RevertResize', 'EditInstanceSecurityGroups',
3652
7e731a1b0b39 PSARC/2014/377 noVNC - A browser based VNC client
Niall Power <niall.power@oracle.com>
parents: 2074
diff changeset
    90
# 'TogglePause', 'ToggleSuspend', 'ResizeLink', 'RebuildInstance' actions
7e731a1b0b39 PSARC/2014/377 noVNC - A browser based VNC client
Niall Power <niall.power@oracle.com>
parents: 2074
diff changeset
    91
# from Project/Instances/Actions
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    92
project_tables.InstancesTable._meta.row_actions = (
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    93
    project_tables.StartInstance,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    94
    project_tables.CreateSnapshot,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    95
    project_tables.SimpleAssociateIP,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    96
    project_tables.AssociateIP,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    97
    project_tables.SimpleDisassociateIP,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
    98
    project_tables.EditInstance,
3652
7e731a1b0b39 PSARC/2014/377 noVNC - A browser based VNC client
Niall Power <niall.power@oracle.com>
parents: 2074
diff changeset
    99
    project_tables.ConsoleLink,
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   100
    project_tables.LogLink,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   101
    project_tables.SoftRebootInstance,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   102
    project_tables.RebootInstance,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   103
    project_tables.StopInstance,
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   104
    project_tables.TerminateInstance
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   105
)
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   106
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   107
# Disable 'admin_state' in Admin/Networks/Create Network
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   108
admin_state = CreateNetwork.base_fields['admin_state']
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   109
admin_state.widget.attrs['disabled'] = True
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   110
admin_state.widget.value_from_datadict = lambda *args: True
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   111
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   112
# Disable 'shared' in Admin/Networks/Create Network. Note that this
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   113
# is unchecked by default.
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   114
CreateNetwork.base_fields['shared'].widget.attrs['disabled'] = True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   115
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   116
# Disable 'admin_state' in Admin/Networks/Network Name/Create Port
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   117
admin_state = CreatePort.base_fields['admin_state']
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   118
admin_state.widget.attrs['disabled'] = True
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   119
admin_state.widget.value_from_datadict = lambda *args: True
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   120
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   121
# Remove 'UpdatePort' action from Admin/Networks/Network Name/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   122
PortsTable._meta.row_actions = (DeletePort,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   123
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   124
# Remove 'UpdateSubnet' action from Admin/Networks/Network Name/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   125
SubnetsTable._meta.row_actions = (DeleteSubnet,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   126
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   127
# Remove the 'EditNetwork' action from Admin/Networks/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   128
NetworksTable._meta.row_actions = (DeleteNetwork,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   129
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   130
# Remove the 'UpdatePort' action from Project/Networks/Name/Ports/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   131
projectPortsTable._meta.row_actions = ()
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   132
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   133
# Remove the 'UpdateSubnet' action from
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   134
# Project/Networks/Name/Subnets/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   135
projectSubnetsTable._meta.row_actions = (projectDeleteSubnet,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   136
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   137
# Remove the 'EditNetwork' action from Project/Networks/Actions
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   138
projectNetworksTable._meta.row_actions = (projectCreateSubnet,
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   139
                                          projectDeleteNetwork)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   140
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   141
# Disable 'admin_state' in Project/Networks/Create Network/Network
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   142
admin_state = CreateNetworkInfoAction.base_fields['admin_state']
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   143
admin_state.widget.attrs['disabled'] = True
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3652
diff changeset
   144
admin_state.widget.value_from_datadict = lambda *args: True
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   145
1989
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   146
# Remove 'CreateVolumeFromImage' checkbox from
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   147
# Project/Images & Snapshots/Actions
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   148
ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,)
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   149
2065
1c1b527dcee1 19510667 fix allocation-pool issue while creating neutron subnets
Girish Moodalbail <Girish.Moodalbail@oracle.COM>
parents: 2025
diff changeset
   150
# Change 'host_routes' field to read-only in
1990
c1c6cc703d7a 18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents: 1989
diff changeset
   151
# Project/Networks/Create Network/Subnet Detail
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   152
base_fields = CreateSubnetDetailAction.base_fields
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   153
base_fields['host_routes'].widget.attrs['readonly'] = 'readonly'