The initScope method is deprecated, the action service should be
stateless.
Also refactor to simplify delete action logic. Some code got carried
over from the images panel, what we originally used as an example. But
much of that code was doing checks useless for trunks. Trunks don't have
complicated 'public' and 'shared' attributes controlling who can operate
on them. A simple policy check will suffice.
Co-Authored-By: Bence Romsics <bence.romsics@ericsson.com>
Change-Id: I689a98697d997780af42eb31a4b5eeee2ddf9b0f
Partially-Implements: blueprint neutron-trunk-ui
Related-Bug: #1640049
Trunk creation is a 3-step workflow:
* Basic trunk attributes
* Parent port selector transfertable:
Selects a single port (mandatory)
* Subports selector transfertable:
Selects many ports with segmentation details (optional)
In the port selector steps reused and built on port allocator
transfertable from launch instance.
The easiest way to test is to take the whole change series by taking the
last change in it, then build devstack with neutron trunk support. Eg:
local.conf:
enable_plugin neutron https://git.openstack.org/openstack/neutron
enable_service q-trunk
If you want to test this change in isolation you also need the following
Horizon config:
openstack_dashboard/enabled/_1500_project_trunks_panel.py:
DISABLED = False # or just remove this line
As long as the 'trunk' API extension is available (openstack
extension show trunk) the panel should automatically appear under
Project/Network/Trunks.
To try the 'inherit' segmentation type the subports must be ports of
vlan type provider networks.
Co-Authored-By: Lajos Katona <lajos.katona@ericsson.com>
Co-Authored-By: Elod Illes <elod.illes@ericsson.com>
Change-Id: I663a7e0158335155fe11f0fc40d9fa86bf984ae0
Partially-Implements: blueprint neutron-trunk-ui
Add delete buttons to the Project/Network/Trunks panel. There is one
button per each trunk item deleting only that trunk. Plus a select and
delete many trunks at once by checkboxes and then delete all selected.
The usual extras (confirmations and toast notifications) are included.
Change-Id: Ie88e169072a563fa238bf870664b71aa7f2a883d
Partially-Implements: bp/neutron-trunk-ui