scsitteam / netbox-windhcp

Webhook Server which syncs the Windows DHCP from Netbox
Apache License 2.0
11 stars 0 forks source link

DHCP Reservations #6

Open lewis-green opened 1 year ago

lewis-green commented 1 year ago

What format are MACS to be in Netbox?

Without any characters between it goes in as 00, with - it goes as 00, with : it does this:

image

lewis-green commented 1 year ago

@jiuka I have noticed that the string passed into from_mac has a load of extra characters on it that aren't visible. I did a unit test of my actual MAC string and it's fine, the JSON from the API returns it right too. But then when converted from string to bytes it's all wrong in the app.

Ps, I found it's seperated by : in the code :)