summaryrefslogtreecommitdiff
path: root/lib/Vyatta/ConfigOutput.pm
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-06-04 15:29:54 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-06-04 15:29:54 -0700
commit456a7208e3d585348130d33ef6028fcbecd7fe32 (patch)
tree9f91114a2fe3c5e245f3925972dfdb258c9c64af /lib/Vyatta/ConfigOutput.pm
parentebb51b14b961bf80917174c4ee73e693392fbd58 (diff)
downloadvyatta-cfg-456a7208e3d585348130d33ef6028fcbecd7fe32.tar.gz
vyatta-cfg-456a7208e3d585348130d33ef6028fcbecd7fe32.zip
modified show output when root deactivated node is deleted. in this case suppress the active designation.
Diffstat (limited to 'lib/Vyatta/ConfigOutput.pm')
-rwxr-xr-xlib/Vyatta/ConfigOutput.pm21
1 files changed, 8 insertions, 13 deletions
diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm
index d2afdbb..c92cee4 100755
--- a/lib/Vyatta/ConfigOutput.pm
+++ b/lib/Vyatta/ConfigOutput.pm
@@ -210,12 +210,7 @@ sub displayDeletedOrigChildren {
my ($state, $n) = $config->getDeactivated($path);
if (defined $state) {
if ($state eq 'active') {
- if (defined($dont_show_as_deleted)) {
- $dis = '! ';
- }
- else {
- $dis = 'A ';
- }
+ $dis = '! ';
}
elsif ($state eq 'local') {
if (defined($dont_show_as_deleted)) {
@@ -263,12 +258,7 @@ sub displayDeletedOrigChildren {
my ($state, $n) = $config->getDeactivated($path);
if (defined $state) {
if ($state eq 'active') {
- if (defined($dont_show_as_deleted)) {
- $dis = '! ';
- }
- else {
- $dis = 'A ';
- }
+ $dis = '! ';
}
elsif ($state eq 'local') {
if (defined($dont_show_as_deleted)) {
@@ -345,7 +335,12 @@ sub displayChildren {
my ($state, $n) = $config->getDeactivated($path);
if (defined $state) {
if ($state eq 'active') {
- $dis = 'A ';
+ if ($child_hash{$child} eq 'deleted') {
+ $dis = '! ';
+ }
+ else {
+ $dis = 'A ';
+ }
}
elsif ($state eq 'local') {
$dis = 'D ';