diff options
author | Benjamin M. Hughes <bmhughes@bmhughes.co.uk> | 2020-10-18 15:29:04 +0100 |
---|---|---|
committer | Benjamin M. Hughes <bmhughes@bmhughes.co.uk> | 2020-10-18 15:29:04 +0100 |
commit | b39d623170377b2e99fd7e88b627afea71e4d00c (patch) | |
tree | c0994a63ef454a2fb5b1c34ba076ae0be48113b1 /src/conf_mode/http-api.py | |
parent | e667e06cffe42744c8cc71be02b080e1bccf241b (diff) | |
download | vyos-1x-b39d623170377b2e99fd7e88b627afea71e4d00c.tar.gz vyos-1x-b39d623170377b2e99fd7e88b627afea71e4d00c.zip |
op-mode: lldp: T2993: Fix 'show lldp neighbors'
'show lldp neighbors' fails with:
Traceback (most recent call last):
File "./lldp_op.py", line 122, in <module>
config_text = tmpl.render(parse_data(neighbors))
File "./lldp_op.py", line 51, in parse_data
for local_if, values in tmp.items():
AttributeError: 'str' object has no attribute 'items'
`parse_data` was expecting data to be provided as a dict within an array
which doesn't match the format from the parsed json output of lldpcli.
Change `parse_data` and `main` to use a dict alone for passing interface
neighbors for rendering.
Diffstat (limited to 'src/conf_mode/http-api.py')
0 files changed, 0 insertions, 0 deletions