Commit 77b512ed authored by nanahira's avatar nanahira

fix route plan

parent 7cca2df9
...@@ -189,7 +189,7 @@ class InventoryBuilder { ...@@ -189,7 +189,7 @@ class InventoryBuilder {
return suitableHosts.map(host => host.address); return suitableHosts.map(host => host.address);
} }
getRoutePlansFromGatewayGroups(host: any) { getRoutePlansFromGatewayGroups(host: any) {
const allOtherHosts = this.connections.filter(h => h !== host.name).map(h => this.hosts[h]); const allOtherHosts = Object.values(this.hosts).filter(h => h !== host.name)
const routePlans = this.gatewayGroups.filter(group => !this.isGatewayGroupContains(group, host)).map(group => { const routePlans = this.gatewayGroups.filter(group => !this.isGatewayGroupContains(group, host)).map(group => {
const addresses = this.getAddressesFromGatewayGroup(group, allOtherHosts); const addresses = this.getAddressesFromGatewayGroup(group, allOtherHosts);
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment