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:
parent
bb13229869
commit
a4b2497f42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user