add arpnip and macsuck hooks and exec hook implementation

This commit is contained in:
Oliver Gorwits
2020-12-30 20:38:45 +00:00
parent 28349eb489
commit 351927d384
9 changed files with 77 additions and 3 deletions

View File

@@ -19,6 +19,10 @@ register_worker({ phase => 'check' }, sub {
return Status->info("arpnip skipped: $device is not arpnipable")
unless is_arpnipable_now($device);
# support for Hooks
vars->{'hook_data'} = { $device->get_columns };
delete vars->{'hook_data'}->{'snmp_comm'}; # for privacy
return Status->done('arpnip is able to run');
});