Commit 8dae5147 authored by Mike Hibler's avatar Mike Hibler

Avoid undefined var reference.

parent 2452ef19
......@@ -160,7 +160,8 @@ sub DESTROY($)
my $gihits = $self->{CACHEGETINFO};
my $ocalls = $self->{CALLOTHER};
print "$id: RESTCONF calls: $gicalls getinfo ($gihits cached), $ocalls other.\n";
print "$id: RESTCONF calls: $gicalls getinfo ($gihits cached), $ocalls other.\n"
if ($self->{DEBUG});
}
#
......@@ -1942,8 +1943,10 @@ sub enablePortTrunking2($$$$) {
}
# Update cached info
delete $self->{TRUNK}{$iface}->{"avlan"};
$self->removeCacheVlanPort($avlan, $iface, "untagged");
undef $avlan;
if (defined($avlan)) {
$self->removeCacheVlanPort($avlan, $iface, "untagged");
undef $avlan;
}
if ($native_vlan != 1) {
@uplist = ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment