Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N2G cli tool issue with --L2-add-connected #35

Open
aldrodav opened this issue Sep 11, 2024 · 0 comments
Open

N2G cli tool issue with --L2-add-connected #35

aldrodav opened this issue Sep 11, 2024 · 0 comments

Comments

@aldrodav
Copy link

Wen in N2G CLI Tool used option --L2-add-connected occured traceback with AttributeError: 'list' object has no attribute 'get'

Details

PS C:\DevNet2023\GitHub\N2G> n2g -d ./l2_data -L2 -L2-add-lag -L2-add-connected
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\DevNet2023\GitHub\N2G.venv\Scripts\n2g.exe_main
.py", line 7, in
File "C:\DevNet2023\GitHub\N2G.venv\Lib\site-packages\N2G\utils\N2G_cli.py", line 552, in cli_tool
drawer.work(DATA)
File "C:\DevNet2023\GitHub\N2G.venv\Lib\site-packages\N2G\plugins\data\cli_l2_data.py", line 314, in work
self._add_all_connected()
File "C:\DevNet2023\GitHub\N2G.venv\Lib\site-packages\N2G\plugins\data\cli_l2_data.py", line 606, in _add_all_connected
line = intf_data.get("state", {}).get("line", "").lower()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
PS C:\DevNet2023\GitHub\N2G>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant