Skip to content

Commit

Permalink
B #2474 Network model is not working in vCenter (#2519)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5d7bdc1)
(cherry picked from commit f68b70c)
  • Loading branch information
joseangelgm authored and Ruben S. Montero committed Nov 20, 2018
1 parent 846de84 commit 8269001
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1309,10 +1309,10 @@ def regenerate_context

# Returns an array of actions to be included in :deviceChange
def calculate_add_nic_spec(nic)
mac = nic["MAC"]
pg_name = nic["BRIDGE"]
model = ''

mac = nic["MAC"]
pg_name = nic["BRIDGE"]
mode = ''
if !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').nil? &&
!one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').empty?
model = one_item['TEMPLATE/NIC_DEFAULT/MODEL']
Expand Down Expand Up @@ -1419,9 +1419,9 @@ def calculate_add_nic_spec(nic)

# Returns an array of actions to be included in :deviceChange
def calculate_add_nic_spec_autogenerate_mac(nic)
pg_name = nic["BRIDGE"]
model = ''

pg_name = nic["BRIDGE"]
mode = ''
if !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').nil? &&
!one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').empty?
model = one_item['TEMPLATE/NIC_DEFAULT/MODEL']
Expand Down

0 comments on commit 8269001

Please sign in to comment.