Prevent suprious 'fi' in filter output

This commit is contained in:
Tom Eastep 2010-11-14 10:51:42 -08:00
parent 0e5dc41d31
commit 5d0e719d03

View File

@ -1445,11 +1445,11 @@ sub setup_traffic_shaping() {
$classids{$classid}=$device;
$device = physical_name $device;
unless ( $config{TC_ENABLED} eq 'Shared' ) {
my $dev = chain_base $device;
my $priority = $tcref->{priority} << 8;
my $parent = in_hexp $tcref->{parent};
unless ( $config{TC_ENABLED} eq 'Shared' ) {
if ( $lastdevice ne $device ) {
if ( $lastdevice ) {
pop_indent;
@ -1501,12 +1501,14 @@ sub setup_traffic_shaping() {
save_progress_message_short qq(" TC Class $classid defined.");
emit '';
}
}
if ( $lastdevice ) {
pop_indent;
emit "fi\n";
}
}
}
process_tcfilters;
}