lib/ovsimager/ovsimager.rb in ovsimager-0.0.2 vs lib/ovsimager/ovsimager.rb in ovsimager-0.0.3
- old
+ new
@@ -109,9 +109,10 @@
@linbr.to_hash.each do |name, br|
puts "Bridge #{name}"
@dotwriter.br_begin(name, '')
br[:interfaces].each do |ifname|
iface = @ifaces[ifname]
+ next unless iface
@dotwriter.br_iface(ifname, @mark[ifname], @dump_result[ifname],
iface[:inet], iface[:tag], iface[:peer])
show_iface iface
@done[ifname] = true
end