netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
792 stars 106 forks source link

address summarize --namespace=dual-evpn produces an exception #74

Closed jopietsch closed 4 years ago

jopietsch commented 4 years ago
(suzieq) jpiet@a1:/tmp/pycharm_project_304/suzieq$ python3 suzieq/cli/suzieq-cli address summarize --namespace=dual-evpn
Error running command: Length of passed values is 4, index implies 12.
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/nubia/internal/cmdbase.py", line 448, in run_cli
    return fn(**kwargs)
  File "/tmp/pycharm_project_304/suzieq/suzieq/cli/sqcmds/command.py", line 155, in summarize
    self._init_summarize()
  File "/tmp/pycharm_project_304/suzieq/suzieq/cli/sqcmds/command.py", line 185, in _init_summarize
    namespace=self.namespace,
  File "/tmp/pycharm_project_304/suzieq/suzieq/sqobjects/basicobj.py", line 117, in summarize
    return self.engine_obj.summarize(namespace=namespace)
  File "/tmp/pycharm_project_304/suzieq/suzieq/engines/pandas/address.py", line 87, in summarize
    v4pfx = v4df.groupby(by=['namespace'])['prefixlen'] \
  File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 730, in value_counts
    return Series(out, index=mi, name=self._selection_name)
  File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/pandas/core/series.py", line 292, in __init__
    f"Length of passed values is {len(data)}, "
ValueError: Length of passed values is 4, index implies 12.
----------------------------------------------------------
jopietsch commented 4 years ago

fixed