summaryrefslogtreecommitdiffstats
path: root/network/config/single-nic-vlans
diff options
context:
space:
mode:
authorDan Sneddon <dsneddon@redhat.com>2015-06-29 09:17:53 -0700
committerDan Prince <dprince@redhat.com>2015-06-29 16:24:00 -0400
commitf08cc7ae12a55ae631097ea7557d3a32247bbd59 (patch)
treec629005e799f7a6d9d8d655f9838835b357e7c95 /network/config/single-nic-vlans
parentaaca462d9a0fd075e6488bc9686a2b57eb8f9a6a (diff)
Add a default route to the external isolated network
This change adds a parameter for ExternalInterfaceDefaultRoute and uses that parameter to set the default route on the controller nodes. This allows Horizon and the public APIs to be reachable from routed networks outside the overcloud. Co-Authored-By: Dan Prince <dprince@redhat.com> Change-Id: I67a72767342237049f53f5085a6faf891fbf0c30
Diffstat (limited to 'network/config/single-nic-vlans')
-rw-r--r--network/config/single-nic-vlans/controller.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/network/config/single-nic-vlans/controller.yaml b/network/config/single-nic-vlans/controller.yaml
index ca0cbcad..4cfa1317 100644
--- a/network/config/single-nic-vlans/controller.yaml
+++ b/network/config/single-nic-vlans/controller.yaml
@@ -45,6 +45,10 @@ parameters:
default: 50
description: Vlan ID for the tenant network traffic.
type: number
+ ExternalInterfaceDefaultRoute:
+ default: '10.0.0.1'
+ description: default route for the external network
+ type: string
resources:
OsNetConfigImpl:
@@ -70,6 +74,10 @@ resources:
addresses:
-
ip_netmask: {get_param: ExternalIpSubnet}
+ routes:
+ -
+ ip_netmask: 0.0.0.0/0
+ next_hop: {get_param: ExternalInterfaceDefaultRoute}
-
type: vlan
vlan_id: {get_param: InternalApiNetworkVlanID}