]> git.puffer.fish Git - matthieu/frr.git/commit
tools: always append "exit" in frr-reload.py
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 28 Nov 2021 21:36:35 +0000 (00:36 +0300)
committerChristian Breunig <christian@breunig.cc>
Wed, 7 Feb 2024 19:39:42 +0000 (20:39 +0100)
commited7febb596cad594cf69271ed1302296121f0b21
treea237df5a945f784b429efbd1e7bf3382e20a845f
parent66a1a1c23a8fc2e06b8a945782231af9bc65dc30
tools: always append "exit" in frr-reload.py

When reloading the following config:
```
router ospf6
 area 0 range 2001:db8::/32 advertise
exit
!
interface eth0
 ipv6 ospf6 area 0
exit
```
frr-reload.py doesn't execute "exit" commands. Because of that, it tries
to execute "interface eth0" inside the "router ospf6" context and fails.

To always execute all commands from the correct context, frr-reload.py
should properly exit from every entered node.

Fixes #10132.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 792ada473893b2d16e0eccde974b71ddc65d15eb)
tools/frr-reload.py