Skip to content

Commit

Permalink
Merge pull request #198 from miha-plesko/exclude-none-network
Browse files Browse the repository at this point in the history
Skip "none" vApp network when inventoring
(cherry picked from commit a0417bb)

https://bugzilla.redhat.com/show_bug.cgi?id=1552673
  • Loading branch information
agrare authored and simaishi committed Mar 7, 2018
1 parent 07fe380 commit a582070
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -44,6 +44,9 @@ def get_vapp_networks

@ems.orchestration_stacks.each do |stack|
fetch_network_configurations_for_vapp(stack.ems_ref).map do |net_conf|
# 'none' is special network placeholder that we must ignore
next if net_conf[:networkName] == 'none'

$vcloud_log.debug("#{log_header} processing net_conf for vapp #{stack.ems_ref}: #{net_conf}")
network_id = network_id_from_links(net_conf)
$vcloud_log.debug("#{log_header} calculated vApp network id: #{network_id}")
Expand Down
Expand Up @@ -9325,6 +9325,21 @@ http_interactions:
<NetworkConfigSection href="https://VMWARE_CLOUD_HOST/api/vApp/vapp-a421d543-768d-4ae5-b7b0-48caeeaccd64/networkConfigSection/" type="application/vnd.vmware.vcloud.networkConfigSection+xml" ovf:required="false">
<ovf:Info>The configuration parameters for logical networks</ovf:Info>
<Link rel="edit" href="https://VMWARE_CLOUD_HOST/api/vApp/vapp-a421d543-768d-4ae5-b7b0-48caeeaccd64/networkConfigSection/" type="application/vnd.vmware.vcloud.networkConfigSection+xml"/>
<NetworkConfig networkName="none">
<Description>This is a special place-holder used for disconnected network interfaces.</Description>
<Configuration>
<IpScopes>
<IpScope>
<IsInherited>false</IsInherited>
<Gateway>196.254.254.254</Gateway>
<Netmask>255.255.0.0</Netmask>
<Dns1>196.254.254.254</Dns1>
</IpScope>
</IpScopes>
<FenceMode>isolated</FenceMode>
</Configuration>
<IsDeployed>false</IsDeployed>
</NetworkConfig>
<NetworkConfig networkName="vApp network test 2">
<Link rel="repair" href="https://VMWARE_CLOUD_HOST/api/admin/network/e12c7b8c-ef85-4541-87e1-13218c7f1bd8/action/reset"/>
<Description></Description>
Expand Down

0 comments on commit a582070

Please sign in to comment.