summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-06-09 14:46:25 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-06-09 14:46:25 -0700
commit9c6579abd73e80781e34fc71d5de1ef81cd6f36a (patch)
treec1146b212d207639379eeb27911a55611f30bbb0 /lib
parente3877f52480fa23066ec1a878ebe078569ed3127 (diff)
parent2bc58238bc4ee5136bf31719b7c7a2435c8012b0 (diff)
downloadvyatta-cfg-9c6579abd73e80781e34fc71d5de1ef81cd6f36a.tar.gz
vyatta-cfg-9c6579abd73e80781e34fc71d5de1ef81cd6f36a.zip
Merge branch 'larkspur' of mohit@git.vyatta.com:/git/vyatta-cfg into larkspur
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Config.pm2
-rwxr-xr-xlib/Vyatta/ConfigOutput.pm12
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index 4ae578c..4c149cf 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -1,4 +1,4 @@
-# Author: An-Cheng Huang <ancheng@vyatta.com>
+# Author: Vyatta <eng@vyatta.com>
# Date: 2007
# Description: vyatta configuration parser
diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm
index c92cee4..09713f9 100755
--- a/lib/Vyatta/ConfigOutput.pm
+++ b/lib/Vyatta/ConfigOutput.pm
@@ -1,4 +1,4 @@
-# Author: An-Cheng Huang <ancheng@vyatta.com>
+# Author: Vyatta <eng@vyatta.com>
# Date: 2007
# Description: Perl module for generating output of the configuration.
@@ -143,7 +143,8 @@ sub displayValues {
my @cnames = sort keys %cnodes;
if (defined($simple_show)) {
- if (!$cnodes{'def'} || $show_all) {
+ if (!defined($cnodes{'def'}) or $cnodes{'def'} eq 'deleted'
+ or $show_all) {
if ($is_password && $hide_password) {
$oval = $HIDE_PASSWORD;
}
@@ -164,15 +165,14 @@ sub displayValues {
$diff = '>';
}
}
- if (!$cnodes{'def'} || $show_all) {
+ # also need to handle the case where def marker is deleted.
+ if (!defined($cnodes{'def'}) or $cnodes{'def'} eq 'deleted'
+ or $show_all) {
if ($is_password && $hide_password) {
$value = $HIDE_PASSWORD;
}
print "$dis$diff$prefix$name $value\n";
}
- elsif ($cnodes{'def'} && ($diff eq '>' || $diff eq '-')) {
- print "$dis$diff$prefix$name $value\n";
- }
}
}