Ask for Reason when changing Port up/down Status, or VLAN

This commit is contained in:
Oliver Gorwits
2013-12-29 18:16:49 +00:00
parent d826a2e12b
commit cfb04e98d1
6 changed files with 53 additions and 2 deletions

View File

@@ -37,9 +37,9 @@ ajax '/ajax/portcontrol' => require_role port_control => sub {
ip => param('device'),
port => param('port'),
action => $a,
reason => 'other',
username => session('logged_in_user'),
userip => request->remote_address,
reason => (param('reason') || 'other'),
log => param('log'),
});
}