remove die() calls
This commit is contained in:
@@ -152,7 +152,7 @@ sub get_vlan_list {
|
||||
my $device = shift;
|
||||
|
||||
my $snmp = App::Netdisco::Transport::SNMP->reader_for($device)
|
||||
or die "macsuck failed: could not SNMP connect to $device";
|
||||
or return (); # already checked!
|
||||
|
||||
return () unless $snmp->cisco_comm_indexing;
|
||||
|
||||
@@ -269,7 +269,7 @@ sub walk_fwtable {
|
||||
my $cache = {};
|
||||
|
||||
my $snmp = App::Netdisco::Transport::SNMP->reader_for($device)
|
||||
or die "macsuck failed: could not SNMP connect to $device";
|
||||
or return $cache; # already checked!
|
||||
|
||||
my $fw_mac = $snmp->fw_mac;
|
||||
my $fw_port = $snmp->fw_port;
|
||||
|
||||
Reference in New Issue
Block a user