From e3d617e41da8cdfac72a65c400a87fc6bd2bd8a3 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Fri, 5 Nov 2021 16:42:39 +0800 Subject: [PATCH] fix: Fix bug in store/neutron/port.js fix bug in store/neutron/port.js Change-Id: I34533b28e50b9fed46f67e3d272f8ac129f3260b --- src/stores/neutron/port.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/stores/neutron/port.js b/src/stores/neutron/port.js index bdfbb5e5..5953f856 100644 --- a/src/stores/neutron/port.js +++ b/src/stores/neutron/port.js @@ -23,7 +23,7 @@ export class PortStore extends Base { } get networkClient() { - return client.neutron.ports; + return client.neutron.networks; } get routerClient() { @@ -81,10 +81,12 @@ export class PortStore extends Base { ...(this.list.silent ? {} : { selectedRowKeys: [] }), }); } - const params = { - device_owner: 'network:ha_router_replicated_interface', - }; - const result = await this.client.list(params); + const routerInterfaceOwners = [ + 'network:router_interface', + 'network:ha_router_replicated_interface', + 'network:router_interface_distributed' + ] + const result = await client.skyline.extension.ports({ device_owner: routerInterfaceOwners }); let data = get(result, this.listResponseKey, []); data = data.filter((it) => ports.indexOf(it.id) >= 0); const items = data.map(this.mapper);