1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Adjust dynamically generated portgroup

This commit is contained in:
Jaime Melis 2012-01-05 15:59:30 +01:00
parent 4e0692d4e5
commit 61ad2c0c08

View File

@ -56,10 +56,9 @@ class OpenNebulaVMware < OpenNebulaNetwork
vm_id = @vm['ID']
hostname = @vm['HISTORY_RECORDS/HISTORY/HOSTNAME']
process do |nic|
switch = nic[:bridge]
network_id = nic[:network_id]
pg = "one-#{network_id}"
pg = "one-pg-#{network_id}"
if nic[:vlan] == "YES"
if nic[:vlan_id]