6 collect_data(:default) do
9 json = JSON.parse(%x(/usr/sbin/lldpctl -f json))
11 interfaces = if json["lldp"]["interface"].is_a?(Array)
12 json["lldp"]["interface"]
14 [json["lldp"]["interface"]]
17 interfaces.each do |interface|
18 interface.each do |name, details|