lib/netutils/cli/alaxala/lldp.rb in netutils-0.1.1 vs lib/netutils/cli/alaxala/lldp.rb in netutils-0.1.2
- old
+ new
@@ -155,11 +155,11 @@
if firmware =~ /^.*Copyright \(c\) .*([0-9]{4}) .*$/
time = $1
else
time = 'unknown'
end
- static_neighbor_resolve(@sw.name, lport)
- @rsw = Switch.get(rname, type, platform, firmware, time)
+ static_neighbor_resolve(@sw, lport)
+ @rsw = Switch.get(rname, type, platform, firmware, time, nil, @sw)
@sw.ports[lport].peers.add(@rsw, nil) # XXX: no way to know remote port...
end
end
end