You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/11/19 11:42:35 UTC

[incubator-dlab] 01/01: [DLAB-1291]: Fixed issue with removing network interfaces on Azure;

This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch DLAB-terminate-fix
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 29b48496bf5cae7e36b7bbf2dc0aa3022c412565
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Tue Nov 19 13:42:22 2019 +0200

    [DLAB-1291]: Fixed issue with removing network interfaces on Azure;
---
 .../src/general/scripts/azure/project_prepare.py                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py b/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
index f2451f9..fca9b2f 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
@@ -53,7 +53,6 @@ if __name__ == "__main__":
         project_conf['vpc_name'] = os.environ['azure_vpc_name']
         project_conf['subnet_name'] = os.environ['azure_subnet_name']
         project_conf['private_subnet_name'] = project_conf['service_base_name'] + '-' + project_conf['project_name'] + '-subnet'
-        project_conf['network_interface_name'] = project_conf['service_base_name'] + "-" + project_conf['project_name'] + '-edge-nif'
         if os.environ['conf_network_type'] == 'private':
             project_conf['static_public_ip_name'] = 'None'
         else:
@@ -65,6 +64,7 @@ if __name__ == "__main__":
         project_conf['instance_name'] = '{0}-{1}-{2}-edge'.format(project_conf['service_base_name'],
                                                                   project_conf['project_name'],
                                                                   project_conf['endpoint_tag'])
+        project_conf['network_interface_name'] = '{0}-nif'.format(project_conf['instance_name'])
         project_conf['primary_disk_name'] = project_conf['instance_name'] + '-disk0'
         project_conf['edge_security_group_name'] = project_conf['instance_name'] + '-sg'
         project_conf['notebook_security_group_name'] = project_conf['service_base_name'] + "-" + project_conf['project_name']\


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org