Skip to content

LedoB/phpipam-subnet-visual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

phpipam-subnet-visual

Enhanced PHPIPAM Subnet Visualization

Tested on:

subnet masks: /22 -> /30

phpipam version: 1.4.4

Notes:

I just tested this with the data I had available. Some of the block headings might be off alignment, just started writing PHP and just need to find the functions for ensuring proper spacing.

e.g., start and stop ranges >= 29 characters total. xxx.xxx.xxx.xxx - xxx.xxx.xxx.xxx

The legend spans are currently static colorings, need to figure out how to dynamically get the colors from maybe ipTags? The only code in subnet-visual uses the IP address for reference to get the fgcolor and bgcolor based on that IP's state (2=used, 3=reserved, etc...).

Replaces:

../phpipam/app/subnets/subnet-visual.php

../phpipam/css/bootstrap/bootstrap-custom-dark.css

Bootstrap CSS

Adds in CSS for Reserved IP Addresses (ip-3) so Reserved IP Address appear differently than Used/Unused/Disabled

.ip_vis span.ip-3{background:rgba(0,0,255,0.05) !important;color:white !important}

Features - Example

Legend Blocks [IP]: Blue (Reserved), Green (Used), Light Gray (Unused), Dark Gray (Disabled Out-of-Range)

Block Headers are: "Starting Usable Address - End Usable Address"

Removed the "." in ".IP" for all blocks, better visual aesthetics and centering for 0-255 in spans.

example

/22 Subnet Example

example-22

About

Enhanced PHPIPAM Subnet Visualization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages