Add missing logging messages

This commit is contained in:
Jamie Cameron
2023-07-16 15:03:37 -07:00
parent 9aeab55a88
commit fd762c2f47
2 changed files with 5 additions and 0 deletions

View File

@@ -277,6 +277,8 @@ log_apply_bfics=Activated $1 boot-time interfaces
log_create_route=Created active route for $1
log_create_defroute=Created active default route
log_delete_routes=Deleted $1 active routes
log_delete_aifcs=Deactivated $1 interfaces
log_delete_bifcs=Deleted $1 interfaces
acl_ifcs=Can edit network interfaces?
acl_routes=Can edit routing and gateways?

View File

@@ -41,6 +41,9 @@ elsif ($type eq 'route' && $action eq 'create') {
elsif ($type eq 'routes' && $action eq 'delete') {
return &text('log_delete_routes', $object);
}
elsif ($type eq 'aifcs' || $type eq 'bifcs') {
return &text('log_'.$action.'_'.$type, $object);
}
else {
return undef;
}