X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fvimconn_vmware.py;h=a33ca4e69887205574835b338639f11c118a6289;hb=34b93bac8a6cf769b996652605a2e43c18448728;hp=910387d29d8a9cc5e77b705bd97a0d9717ec6e09;hpb=0c007d6e259c2ff1cdc6be0e1d95ec17e709fae4;p=osm%2FRO.git
diff --git a/osm_ro/vimconn_vmware.py b/osm_ro/vimconn_vmware.py
index 910387d2..a33ca4e6 100644
--- a/osm_ro/vimconn_vmware.py
+++ b/osm_ro/vimconn_vmware.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
##
-# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
-# This file is part of openmano
+# Copyright 2016-2017 VMware Inc.
+# This file is part of ETSI OSM
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -18,7 +18,7 @@
# under the License.
#
# For those usages not covered by the Apache License, Version 2.0 please
-# contact with: nfvlabs@tid.es
+# contact: osslegalrouting@vmware.com
##
"""
@@ -2751,6 +2751,11 @@ class vimconnector(vimconn.vimconnector):
#Unused in case of Underlay (data/ptp) network interface.
fence_mode="bridged"
is_inherited='false'
+ dns_list = dns_address.split(";")
+ dns1 = dns_list[0]
+ dns2_text = ""
+ if len(dns_list) >= 2:
+ dns2_text = "\n {}\n".format(dns_list[1])
data = """
Openmano created
@@ -2759,22 +2764,22 @@ class vimconnector(vimconn.vimconnector):
{1:s}
{2:s}
{3:s}
- {4:s}
- {5:s}
+ {4:s}{5:s}
+ {6:s}
- {6:s}
- {7:s}
+ {7:s}
+ {8:s}
-
- {9:s}
+
+ {10:s}
- {10:s}
+ {11:s}
""".format(escape(network_name), is_inherited, gateway_address,
- subnet_address, dns_address, dhcp_enabled,
+ subnet_address, dns1, dns2_text, dhcp_enabled,
dhcp_start_address, dhcp_end_address, available_networks,
fence_mode, isshared)