You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The serializer for the API endpoint for Interfaces is casting incoming integer representations of MAC addresses as strings, thereby storing them incorrectly.
For example:
# This should be '00:1c:73:2a:60:62'>>>importnetaddr>>>mac=122191241314>>>printnetaddr.EUI(mac, dialect=netaddr.mac_unix_expanded)
00:1c:73:2a:60:62# This should NOT be '12:21:91:24:13:14'>>>printnetaddr.EUI(str(mac), dialect=netaddr.mac_unix_expanded)
12:21:91:24:13:14
I've confirmed that the mac_address field for nsot.api.serializers.InterfaceSerializer is a CharField and needs to be corrected.
The text was updated successfully, but these errors were encountered:
- Integers are no longer being improperly cast to strings and then back
to an incorrect integer representation. (fixesdropbox#111)
- Added extra unit tests and regression tests for this bug.
- Moved all references to exceptions into `nsot.exc`.
- Moved email validator to `nsot.validators`.
The serializer for the API endpoint for Interfaces is casting incoming integer representations of MAC addresses as strings, thereby storing them incorrectly.
For example:
I've confirmed that the
mac_address
field fornsot.api.serializers.InterfaceSerializer
is aCharField
and needs to be corrected.The text was updated successfully, but these errors were encountered: