mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 14:13:11 +00:00
vtysh: fix checking empty interface node
vtysh is not supposed to show empty interface node in running config, however the corresponding check is broken and empty nodes are shown. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
3eb4d42e62
commit
cedba2406f
@ -548,9 +548,7 @@ static void configvec_dump(vector vec, bool nested)
|
|||||||
* are not under the VRF node.
|
* are not under the VRF node.
|
||||||
*/
|
*/
|
||||||
if (config->index == INTERFACE_NODE
|
if (config->index == INTERFACE_NODE
|
||||||
&& (listcount(config->line) == 1)
|
&& list_isempty(config->line)) {
|
||||||
&& (line = listnode_head(config->line))
|
|
||||||
&& strmatch(line, "exit")) {
|
|
||||||
config_del(config);
|
config_del(config);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user