author | Girish Moodalbail <Girish.Moodalbail@oracle.COM> |
Tue, 02 Sep 2014 13:23:57 -0700 | |
changeset 2065 | 1c1b527dcee1 |
parent 2025 | 8dbf23e740f2 |
child 2074 | d2f9b776557a |
permissions | -rw-r--r-- |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
1 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
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 \ |
ae222899e270
19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents:
1970
diff
changeset
|
33 |
openstack_dashboard.dashboards.project.images_and_snapshots.images.tables \ |
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 |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
57 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
58 |
# 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
|
59 |
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
|
60 |
create_instance.SelectProjectUser, |
f37782924749
19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents:
1944
diff
changeset
|
61 |
create_instance.SetInstanceDetails, |
f37782924749
19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents:
1944
diff
changeset
|
62 |
create_instance.SetAccessControls, |
f37782924749
19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents:
1944
diff
changeset
|
63 |
create_instance.SetNetwork |
f37782924749
19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents:
1944
diff
changeset
|
64 |
) |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
65 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
66 |
# Remove 'UpdateInstanceSecurityGroups' from |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
67 |
# 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
|
68 |
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
|
69 |
update_instance.UpdateInstanceInfo, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
70 |
) |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
71 |
|
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
72 |
# 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
|
73 |
AccessAndSecurityTabs.tabs = (KeypairsTab, FloatingIPsTab, APIAccessTab) |
56ac2df1785b
PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents:
1820
diff
changeset
|
74 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
75 |
# Remove 'ConsoleTab' tab from Project/Instances/Instance Name |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
76 |
InstanceDetailTabs.tabs = (OverviewTab, LogTab) |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
77 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
78 |
# Remove 'ConfirmResize', 'RevertResize', 'ConsoleLink', 'TogglePause', |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
79 |
# '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
|
80 |
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
|
81 |
admin_tables.AdminEditInstance, |
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', |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
90 |
# 'ConsoleLink', 'TogglePause', 'ToggleSuspend', 'ResizeLink', |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
91 |
# 'RebuildInstance' actions from Project/Instances/Actions |
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, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
99 |
project_tables.LogLink, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
100 |
project_tables.SoftRebootInstance, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
101 |
project_tables.RebootInstance, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
102 |
project_tables.StopInstance, |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
103 |
project_tables.TerminateInstance |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
104 |
) |
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 |
# Disable 'admin_state' and 'shared' checkboxes in |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
107 |
# Admin/Networks/Create Network |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
108 |
CreateNetwork.base_fields['admin_state'].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
|
109 |
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
|
110 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
111 |
# Disable 'admin_state' checkbox in |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
112 |
# Admin/Networks/Network Name/Create Port |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
113 |
CreatePort.base_fields['admin_state'].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
|
114 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
115 |
# 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
|
116 |
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
|
117 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
118 |
# 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
|
119 |
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
|
120 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
121 |
# 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
|
122 |
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
|
123 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
124 |
# 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
|
125 |
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
|
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 'UpdateSubnet' action from |
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
128 |
# 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
|
129 |
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
|
130 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
131 |
# 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
|
132 |
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
|
133 |
projectDeleteNetwork) |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
134 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
135 |
# Disable 'admin_state' checkboxes in Project/Networks/Create Network/Network |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
136 |
CreateNetworkInfoAction.base_fields['admin_state'].widget.attrs['disabled'] = \ |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
137 |
True |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
138 |
|
1990
c1c6cc703d7a
18686478 kstat warning every minute in nova-compute log on SPARC
david.comay@oracle.com
parents:
1989
diff
changeset
|
139 |
# Disable 'no_gateway' checkboxes in Project/Networks/Create Network/Subnet |
1820
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
140 |
CreateSubnetInfoAction.base_fields['no_gateway'].widget.attrs['disabled'] = \ |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
141 |
True |
f3a6bd7bd4a6
18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff
changeset
|
142 |
|
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
|
143 |
# 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
|
144 |
# 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
|
145 |
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
|
146 |
|
2065
1c1b527dcee1
19510667 fix allocation-pool issue while creating neutron subnets
Girish Moodalbail <Girish.Moodalbail@oracle.COM>
parents:
2025
diff
changeset
|
147 |
# 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
|
148 |
# 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
|
149 |
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
|
150 |
base_fields['host_routes'].widget.attrs['readonly'] = 'readonly' |