Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #269 from rhafer/bsc969877-backport
Browse files Browse the repository at this point in the history
Fix physnet mapping for non-vlan setups (bsc#969877)
  • Loading branch information
dirkmueller committed Mar 30, 2016
2 parents 07f4354 + 6cd86a6 commit 67c105e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions chef/cookbooks/neutron/libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ def self.get_neutron_physnets(node, external_networks)
end

# Now check if any of the external network will share the physical interface
# with "nova_fixed".
fixed_conduit = node[:network][:networks][:nova_fixed][:conduit]
fixed_interface = BarclampLibrary::Barclamp::Inventory.lookup_interface_info(
node, fixed_conduit)[0]
fixed_physnet = "physnet1"
# with "nova_fixed" if the node has "nova_fixed" enabled.
fixed_interface = ""
fixed_physnet = ""
if node[:crowbar_wall][:network][:nets][:nova_fixed]
fixed_conduit = node[:network][:networks][:nova_fixed][:conduit]
fixed_interface = BarclampLibrary::Barclamp::Inventory.lookup_interface_info(
node, fixed_conduit)[0]
fixed_physnet = "physnet1"
end

physmap = Hash.new
networks.each do |net, values|
Expand Down

0 comments on commit 67c105e

Please sign in to comment.