]> git.proxmox.com Git - mirror_frr.git/commit - tools/frr-reload.py
tools: fix wrong get_contexts() of Config class.
authoranlan_cs <anlan_cs@tom.com>
Tue, 6 Jul 2021 07:15:46 +0000 (03:15 -0400)
committeranlan_cs <anlan_cs@tom.com>
Sat, 9 Oct 2021 08:15:55 +0000 (04:15 -0400)
commit1bdffcf01c47af289e313c8e4edd4e308ae37d66
tree34ea61dc47bca7d8d8cdafcabfc3ce14a59e1891
parent495047b526207f36c5b4ce359ec14c7b1bb1fa5e
tools: fix wrong get_contexts() of Config class.

Calling get_contexts() can't display as expected, it wrongly displays:
<__main__.Context object at 0x7fdee1d5ad50>

So make it display correct data by add __str__ in Context class.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
tools/frr-reload.py