summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/VyattaConfigOutput.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm
index 56c3a74..8b43c18 100755
--- a/scripts/VyattaConfigOutput.pm
+++ b/scripts/VyattaConfigOutput.pm
@@ -248,7 +248,13 @@ sub outputNewConfig {
$config->setLevel(join ' ', @_);
my %rnodes = $config->listNodeStatus();
if (scalar(keys %rnodes) > 0) {
- displayChildren(\%rnodes, [ @_ ], '');
+ my @rn = keys %rnodes;
+ if ($#rn == 0 && $rn[0] eq 'node.val') {
+ # this is a leaf value-node
+ displayValues([ @_ ], '', $_[$#_]);
+ } else {
+ displayChildren(\%rnodes, [ @_ ], '');
+ }
} else {
if (defined($config->existsOrig())) {
# this is a deleted node