fix peering routes config in fast a network stage (#2464)
This commit is contained in:
committed by
GitHub
parent
a5ad9a89c6
commit
4298f14e1b
@@ -22,7 +22,20 @@ module "peering-dev" {
|
||||
prefix = "dev-peering-0"
|
||||
local_network = module.dev-spoke-vpc.self_link
|
||||
peer_network = module.landing-vpc.self_link
|
||||
routes_config = var.spoke_configs.peering_configs.dev
|
||||
routes_config = {
|
||||
local = {
|
||||
export = var.spoke_configs.peering_configs.dev.export
|
||||
import = var.spoke_configs.peering_configs.dev.import
|
||||
public_export = var.spoke_configs.peering_configs.dev.public_export
|
||||
public_import = var.spoke_configs.peering_configs.dev.public_import
|
||||
}
|
||||
peer = {
|
||||
export = var.spoke_configs.peering_configs.dev.import
|
||||
import = var.spoke_configs.peering_configs.dev.export
|
||||
public_export = var.spoke_configs.peering_configs.dev.public_import
|
||||
public_import = var.spoke_configs.peering_configs.dev.public_export
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module "peering-prod" {
|
||||
@@ -31,7 +44,20 @@ module "peering-prod" {
|
||||
prefix = "prod-peering-0"
|
||||
local_network = module.prod-spoke-vpc.self_link
|
||||
peer_network = module.landing-vpc.self_link
|
||||
routes_config = var.spoke_configs.peering_configs.prod
|
||||
depends_on = [module.peering-dev]
|
||||
routes_config = {
|
||||
local = {
|
||||
export = var.spoke_configs.peering_configs.prod.export
|
||||
import = var.spoke_configs.peering_configs.prod.import
|
||||
public_export = var.spoke_configs.peering_configs.prod.public_export
|
||||
public_import = var.spoke_configs.peering_configs.prod.public_import
|
||||
}
|
||||
peer = {
|
||||
export = var.spoke_configs.peering_configs.prod.import
|
||||
import = var.spoke_configs.peering_configs.prod.export
|
||||
public_export = var.spoke_configs.peering_configs.prod.public_import
|
||||
public_import = var.spoke_configs.peering_configs.prod.public_export
|
||||
}
|
||||
}
|
||||
depends_on = [module.peering-dev]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user