kytos / mef_eline

Kytos NApp to create and manage point-to-point L2 circuits
https://napps.kytos.io/kytos/mef_eline
MIT License
3 stars 14 forks source link

Changed EVC's id size from 128 to 64 bits #205

Closed ajoaoff closed 4 years ago

ajoaoff commented 4 years ago

This way, the size is the same of the cookie field in a flow, making it easy to convert from one to the other.

:octocat: Issue

This PR fixes #204.

:bookmark_tabs: Description of the Change

This changes the id size from 128 bits to 64. The id is generated using the hex representation of a uuid4 and, as it represents a 128 bits integer, we get the first half of it. Also, get_cookie method, where the cookie was obtained by taking the first half of the id and converting to a int base 16, now it just does the conversion.

:computer: Verification Process

Besides running the unit tests, I tried to create, get and delete an EVC.

:page_facing_up: Release Notes