]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: Ensure an empty string does not get printed for host/domain
authorNico Berlee <nico.berlee@on2it.net>
Sun, 23 Oct 2022 14:42:51 +0000 (16:42 +0200)
committerNico Berlee <nico.berlee@on2it.net>
Tue, 25 Oct 2022 05:40:01 +0000 (07:40 +0200)
commit36d223bb6b758966ca3de434c723791faf7178ee
treef2941d5e1a917c14df034198954ce71b2c801071
parent695f387ed872c1bc55ad4149ede95465b48697b9
vtysh: Ensure an empty string does not get printed for host/domain

vtysh show running-config is showing:
frr version 8.3.1_git
frr defaults traditional
hostname test
log file /etc/frr/frr.log informational
log timestamp precision 3
domainname
service integrated-vtysh-config

domainname should not be printed in this case at all. If the
host has no search/domainname configured, frr_reload.py
crashes on invalid config from `vtysh show running-config`

Basically the same change as commit a7141b8

Signed-off-by: Nico Berlee <nico.berlee@on2it.net>
vtysh/vtysh_config.c