Dear all,

I got a problem from the Translate.py when I run the ENVI to connect. the error message are as follows:

Waiting for ENVI connection
Got connection from ('*.*.*.*', 3743)
Connected to NOX at ('localhost', 2703)
Proxying {'command': 'request', 'node_type': 'all', 'type': 'lavi'} to LAVI
Proxying {'command': 'subscribe', 'node_type': 'all', 'type': 'lavi'} to LAVI Proxying {'type': 'lavi', 'node_type': 'switch', 'node_id': ['23206de797', '2320363783', '232060de84'], 'command': 'add'} to ENVI
Proxying {'command': 'request', 'type': 'lavi', 'link_type': 'all'} to LAVI
Proxying {'command': 'subscribe', 'type': 'lavi', 'link_type': 'all'} to LAVI
Proxying {'command': 'request', 'type': 'lavi', 'flow_type': 'all'} to LAVI
Proxying {'command': 'subscribe', 'type': 'lavi', 'flow_type': 'all'} to LAVI
Proxying {'command': 'request', 'type': 'lavi', 'link_type': 'all'} to LAVI
Unhandled binary type 32
Proxying None to LAVI
Proxying {'command': 'request', 'type': 'lavi', 'link_type': 'all'} to LAVI
Unhandled binary type 32
Proxying None to LAVI
Proxying {'command': 'request', 'type': 'lavi', 'link_type': 'all'} to LAVI
Unhandled binary type 32
Proxying None to LAVI
Proxying {'type': 'lavi', 'command': 'add', 'links': [{'src port': '1', 'dst id': '002320363783', 'src id': '0023206de797', 'src type': 'switch', 'dst type': 'switch', 'dst port': '2'}, {'src port': '2', 'dst id': '0023206de797', 'src id': '002320363783', 'src type': 'switch', 'dst type': 'switch', 'dst port': '1'}, {'src port': '1', 'dst id': '00232060de84', 'src id': '002320363783', 'src type': 'switch', 'dst type': 'switch', 'dst port': '2'}, {'src port': '2', 'dst id': '002320363783', 'src id': '00232060de84', 'src type': 'switch', 'dst type': 'switch', 'dst port': '1'}], 'link_type': 'sw2sw'} to ENVI Proxying {'type': 'lavi', 'command': 'add', 'flow_type': 'network', 'flows': [{'src port': '1', 'dst id': '00232060de84', 'src id': '002320363783', 'src type': 'switch', 'dst type': 'switch', 'dst port': '2'}], 'flow_id': '5027f979a6eecdc5'} to ENVI
Traceback (most recent call last):
  File "./MTranslate.py", line 299, in <module>
    binarymsg = lavi2envi(jsonmsg)
  File "./MTranslate.py", line 163, in lavi2envi
struct.pack("!HQH", 1, int(flow["dst id"],16), int(flow["dst port"],16)) + \
struct.error: integer out of range for 'L' format code



My NOX version is 0.9.0 (zaku). in order to support the display of flows in ENVI. I try to modify the meta.json, lavi_flows.cc, and lavi_networkflow.cc under nox/src/nox/netapps/lavi. However, the Translate.py got stuck.

How could I resolve this problem?

Thanks!!

Wun-Yuan



Reply via email to