This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-1546
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1546 by this push:
new 8b2f231 [DLAB-1546]: added name convention changes
8b2f231 is described below
commit 8b2f231865c23be9277ffe93e28c3636812cf3f5
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Wed Mar 4 18:04:13 2020 +0200
[DLAB-1546]: added name convention changes
---
infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
index 80b0f02..5b318c8 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
@@ -293,6 +293,10 @@ class GCPActions:
unique_index =
meta_lib.GCPMeta().get_index_by_service_account_name(service_account_name)
service_account_email =
"{}-{}@{}.iam.gserviceaccount.com".format(service_base_name, unique_index,
self.project)
access_configs = ''
+ if instance_class == 'edge':
+ ip_forward = True
+ else:
+ ip_forward = False
if instance_class == 'ssn' or instance_class == 'edge':
access_configs = [{
"type": "ONE_TO_ONE_NAT",
@@ -374,6 +378,7 @@ class GCPActions:
"name": instance_name,
"machineType": "zones/{}/machineTypes/{}".format(zone,
instance_size),
"labels": labels,
+ "canIpForward": ip_forward,
"networkInterfaces": [
{
"network": "global/networks/{}".format(vpc_name),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]