1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-04 05:17:40 +03:00

Fix Network names when rendering the Network pool resource

git-svn-id: http://svn.opennebula.org/one/trunk@968 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2010-02-05 22:37:54 +00:00
parent bb13229869
commit a4b2497f42

View File

@ -4,14 +4,15 @@ include OpenNebula
class VirtualNetworkPoolOCCI < VirtualNetworkPool
OCCI_NETWORK_POOL = %q{
<NETWORK><%
<NETWORKS><%
if network_pool_hash['VNET_POOL'] != nil
vnlist=[network_pool_hash['VNET_POOL']['VNET']].flatten
vnlist.each{|network|%>
<NIC href="<%= base_url %>/network/<%= network['ID'].strip %>"/><%
<NETWORK href="<%= base_url %>/network/<%= network['ID'].strip
%>"/><%
}
end %>
</NETWORK>
</NETWORKS>
}.gsub(/^ /, '')
# Creates the OCCI representation of a Virtual Network