Open rasanentimo opened 3 years ago
Here's another log message related to this topic
2021-04-29 12:19:38,143 - suzieq.poller.services.service - ERROR - Processing data failed for service evpnVni on node QFX
Traceback (most recent call las):
File "/root/.local/lib/python3.7/site-packages/suzieq/poller/services/service.py", line 654, in run
result = self.process_data(output)
File "/root/.local/lib/python3.7/site-packages/suzieq/poller/services/service.py", line 375, in process_data
return self.clean_data(result, data)
File "/root/.local/lib/python3.7/site-packages/suzieq/poller/services/service.py", line 432, in clean_data
processed_data = dev_clean_fn(processed_data, raw_data)
File "/root/.local/lib/python3.7/site-packages/suzieq/poller/services/evpnVni.py", line 168, in _clean_junos_data
'vlan': int(vlan),
ValueError: invalid literal for int() with base 10: 'None'
{
"vxlan-source-vtep-information" : [
{
"attributes" : {"xmlns" : "http://xml.juniper.net/junos/20.4R0/junos-l2al"},
"svtep-format" : [
{
"vtep-logical-system-name" : [
{
"data" : "<default>"
}
],
"vtep-logical-system-id" : [
{
"data" : "0"
}
],
"source-vtep-address" : [
{
"data" : "4.4.4.2"
}
],
"source-vtep-interface" : [
{
"data" : "lo0.0"
}
],
"source-vtep-interface-id" : [
{
"data" : "547"
}
],
"l3-id" : [
{
"data" : "0"
}
],
"vxlan-remote-vtep-information" : [
{
"attributes" : {"xmlns" : "http://xml.juniper.net/junos/20.4R0/junos-l2al"},
"remote-vtep-address" : [
{
"data" : "4.4.4.1"
}
],
"vtep-routing-instance-name" : [
{
"data" : "default-switch"
}
],
"remote-vtep-interface-index" : [
{
"data" : "594"
}
],
"remote-vtep-interface-name" : [
{
"data" : "vtep.32769"
}
],
"remote-vtep-nh-id" : [
{
"data" : "2276"
}
],
"remote-vtep-mode" : [
{
"data" : "RNVE"
}
],
"vxlan-dynamic-information" : [
{
"attributes" : {"junos:style" : "without-nhid"},
"vxlan-format" : [
{
"vn-id" : [
{
"data" : "1000990"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002500"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1000500"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1000550"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1000599"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002000"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002010"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002496"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002497"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
},
{
"vn-id" : [
{
"data" : "1002498"
}
],
"multicast-address" : [
{
"data" : "0.0.0.0"
}
]
}
]
}
]
}
]
}
]
}
]
}```
This has been fixed for LLDP since version 0.16.0 Please try with version 0.17.1 and let me know if it works. Please close the issue if it works.
Description
I suppose these issues can be solved only by command/extraction version, https://suzieq.readthedocs.io/en/latest/service/service-format/#version but this is not introduced yet.
The first one is related to LLDP. Suzieq tries to collect LLDP data from Junos QFX switch with command
show lldp neighbors detail | display json | no-more
but the command doesn't have the option 'detail' on the older Junos releases (seems the detail option was introduced in ~18 version)
The second one is related to command
show system uptime | display json
which seem to have have some difference as well and it doesn't match the current normalization.Steps to reproduce
Issue command
show lldp neighbors ?
on a Junos QFX switch.Tested with following hw/sw combinations
Model: qfx5200-32c-32q, Junos: 15.1X53-D232.3 Model: qfx10002-72q, Junos: 17.3R3-S1.5 Model: qfx5100-24q-2p, Junos: 14.1X53-D35.3