Cacti / plugin_mactrack

Mactrack Plugin for Cacti
GNU General Public License v2.0
12 stars 25 forks source link

Add more mac address formats #228

Open xmacan opened 5 months ago

xmacan commented 5 months ago

add mac address formats: xxxx-xxxx-xxxx xxxx.xxxx.xxxx xxxxxxxxxxxx

1) change settings "Mac address delimiter" to "Mac address format" 2) prepare function mt_format_mac 3) use everywhere

(https://github.com/Cacti/cacti/discussions/5746)

TheWitness commented 5 months ago

Maybe make the is user preference. It's already there but missing the - as an option.

xxconn commented 3 weeks ago

xxxx-xxxx-xxxx xxxx.xxxx.xxxx xxxxxxxxxxxx xx:xx:xx:xx:xx:xx

What is the format of MAC's data in the database? If it's a user preference, it means that is the display format.

TheWitness commented 3 weeks ago

The later. Those other two formats are not supported, but are only a code change away.

xxconn commented 3 weeks ago

Add one more format: xx-xx-xx-xx-xx-xx

TheWitness commented 3 weeks ago

That format and the colon format are both supported. I think they are stored in the database with colons, but it’s honestly been so many years since I wrote it, I don’t remember 😉