mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Add port-rewrite options
This commit is contained in:
@@ -322,6 +322,16 @@ by continuing the array.
|
||||
`bad_iftype` is matched against the ifType value.
|
||||
`bad_if_regexp` is matched against the ifDescr value as a regular expression.
|
||||
|
||||
#### Interfaces to be rewritten
|
||||
|
||||
```php
|
||||
$config['rewrite_if']['cpu'] = 'Management Interface';
|
||||
$config['rewrite_if_regexp']['/cpu /'] = 'Management ';
|
||||
```
|
||||
Entries defined in `rewrite_if` are being replaced completely.
|
||||
Entries defined in `rewrite_if_regexp` only replace the match.
|
||||
Matches are compared case-insensitive.
|
||||
|
||||
#### Storage configuration
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user