Skip to content

Commit

Permalink
Fix Network names when rendering the Network pool resource
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.opennebula.org/one/trunk@968 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information
ruben committed Feb 5, 2010
1 parent f3515d4 commit 5451231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cloud/occi/lib/VirtualNetworkPoolOCCI.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

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
Expand Down

0 comments on commit 5451231

Please sign in to comment.