Updates to bonding support for Contrail controllers
get_private_ifname function updated to return a correct interface name for environments with bonding enabled on Contrail controllers. Change-Id: I5e1d8e79fef0c80ac642e21bf6fbc47a12196733
This commit is contained in:
committed by
Oleksandr Martsyniuk
parent
a032b9d3ab
commit
5f8f0560ca
@@ -23,7 +23,7 @@ newfunction(:get_private_ifname, :type => :rvalue, :doc => <<-EOS
|
||||
yml = YAML.load(File.open("/etc/astute.yaml"))
|
||||
|
||||
yml['network_scheme']['transformations'].each do |entry|
|
||||
if entry['action'] == "add-port" and (entry['bridge'] == "br-aux" or entry['bridge'] == "br-mesh")
|
||||
if entry['bridge'] == "br-aux" or entry['bridge'] == "br-mesh"
|
||||
ifname = entry['name']
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user