Bug 620 VCD VIMconnector: new_network api is going to create "Isolated" type network 99/7099/1
authorAnanda Baitharu <ananda.baitharu@riftio.com>
Mon, 14 Jan 2019 13:05:58 +0000 (13:05 +0000)
committerAnanda Baitharu <ananda.baitharu@riftio.com>
Mon, 14 Jan 2019 13:05:58 +0000 (13:05 +0000)
Change-Id: I06f5c877859c488d309baa0d595cb6e6c23f9961
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
osm_ro/vimconn_vmware.py

index fe11892..4a5ab97 100644 (file)
@@ -3695,7 +3695,7 @@ class vimconnector(vimconn.vimconnector):
 
             #Creating all networks as Direct Org VDC type networks.
             #Unused in case of Underlay (data/ptp) network interface.
-            fence_mode="bridged"
+            fence_mode="isolated"
             is_inherited='false'
             dns_list = dns_address.split(";")
             dns1 = dns_list[0]
@@ -3720,13 +3720,12 @@ class vimconnector(vimconn.vimconnector):
                                                 </IpRanges>
                                             </IpScope>
                                         </IpScopes>
-                                        <ParentNetwork href="{9:s}"/>
-                                        <FenceMode>{10:s}</FenceMode>
+                                        <FenceMode>{9:s}</FenceMode>
                                     </Configuration>
-                                    <IsShared>{11:s}</IsShared>
+                                    <IsShared>{10:s}</IsShared>
                         </OrgVdcNetwork> """.format(escape(network_name), is_inherited, gateway_address,
                                                     subnet_address, dns1, dns2_text, dhcp_enabled,
-                                                    dhcp_start_address, dhcp_end_address, available_networks,
+                                                    dhcp_start_address, dhcp_end_address,
                                                     fence_mode, isshared)
 
             headers['Content-Type'] = 'application/vnd.vmware.vcloud.orgVdcNetwork+xml'