fix: Fix bug in store/neutron/port.js
fix bug in store/neutron/port.js Change-Id: I34533b28e50b9fed46f67e3d272f8ac129f3260b
This commit is contained in:
parent
fd40b95913
commit
e3d617e41d
@ -23,7 +23,7 @@ export class PortStore extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get networkClient() {
|
get networkClient() {
|
||||||
return client.neutron.ports;
|
return client.neutron.networks;
|
||||||
}
|
}
|
||||||
|
|
||||||
get routerClient() {
|
get routerClient() {
|
||||||
@ -81,10 +81,12 @@ export class PortStore extends Base {
|
|||||||
...(this.list.silent ? {} : { selectedRowKeys: [] }),
|
...(this.list.silent ? {} : { selectedRowKeys: [] }),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const params = {
|
const routerInterfaceOwners = [
|
||||||
device_owner: 'network:ha_router_replicated_interface',
|
'network:router_interface',
|
||||||
};
|
'network:ha_router_replicated_interface',
|
||||||
const result = await this.client.list(params);
|
'network:router_interface_distributed'
|
||||||
|
]
|
||||||
|
const result = await client.skyline.extension.ports({ device_owner: routerInterfaceOwners });
|
||||||
let data = get(result, this.listResponseKey, []);
|
let data = get(result, this.listResponseKey, []);
|
||||||
data = data.filter((it) => ports.indexOf(it.id) >= 0);
|
data = data.filter((it) => ports.indexOf(it.id) >= 0);
|
||||||
const items = data.map(this.mapper);
|
const items = data.map(this.mapper);
|
||||||
|
Loading…
Reference in New Issue
Block a user