Fix deleting port from port details page

This patch fixes "Delete port" button at the port details page:
Project -> Network -> Networks -> <network name> -> Ports -> <port name>

Change-Id: I84f4da9c84d75c458b54bd456cbc7b92b303ba81
Closes-Bug: #1854514
(cherry picked from commit 18020e30b6)
This commit is contained in:
Tatiana Ovchinnikova 2019-11-29 19:55:08 +01:00 committed by Vishal Manchanda
parent b22a1e39c4
commit 4ce46d8950
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ class DetailView(tabs.TabbedTableView):
] ]
context["custom_breadcrumb"] = breadcrumb context["custom_breadcrumb"] = breadcrumb
context["port"] = port context["port"] = port
context["url"] = self.get_redirect_url() context["url"] = reverse(
'horizon:project:networks:ports_tab', args=[port.network_id])
context["actions"] = table.render_row_actions(port) context["actions"] = table.render_row_actions(port)
return context return context