mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-14 01:30:31 +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.
|
||||
*/
|
||||
if (config->index == INTERFACE_NODE
|
||||
&& (listcount(config->line) == 1)
|
||||
&& (line = listnode_head(config->line))
|
||||
&& strmatch(line, "exit")) {
|
||||
&& list_isempty(config->line)) {
|
||||
config_del(config);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user