-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement icon selection based on Device Role (#14)
* Implement icon selection based on Device Role Icon selection criteria order: 1. Based on 'icon_{icon_type}' tag in Netbox device 2. Based on Netbox device type and ICON_MODEL_MAP 3. Based on Netbox device role and ICON_ROLE_MAP 4. Default 'undefined' The plugin contains a default Device Role to Icon mapping: DEFAULT_ICON_ROLE_MAP = { 'border': 'router', 'edge-switch': 'switch', 'edge-router': 'router', 'core-router': 'router', 'core-switch': 'switch', 'distribution': 'switch', 'distribution-router': 'router', 'distribution-switch': 'switch', 'leaf': 'switch', 'spine': 'switch', 'access': 'switch', 'access-switch': 'switch', } A custom Device Role to Icon mapping may be defined in 'icon_role_map' plugin parameter within Netbox configuration file. * Update README.md * v0.5.0 Co-authored-by: Debug All <iDebugAll@gmail.com>
- Loading branch information
Showing
4 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters