second, an enormously complicated group of gadgets designed to overcome the shortcomings of the original and achieving thereby somewhat satisfactory performance through extremely complex compromise; Friday, March 1, 13
class DeviceDiscovery def self.run(device) device_discovery = new(device) device_discovery.run end def run switch = FE::Switch.discover(device) mac = switch.mac_address. select { |m| m == device.mac_address }.first FE::MacAddress.update(mac, device) end end Friday, March 1, 13
class DeviceDiscovery def self.run(device) device_discovery = new(device) device_discovery.run end def run switch = Switch.discover(device) mac = MacAddress.discover(switch) MacAddressCorrelation. create(device, mac) end end Friday, March 1, 13