mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(ci): eui64 address calculation
This commit is contained in:
parent
0fc4345634
commit
c74790c6dd
2 changed files with 2 additions and 2 deletions
|
|
@ -306,7 +306,7 @@
|
||||||
"int": null,
|
"int": null,
|
||||||
"local": {
|
"local": {
|
||||||
"address4": "10.1.1.50",
|
"address4": "10.1.1.50",
|
||||||
"address6": "fd0a::2ba:46ff:fef8:4052",
|
"address6": "fd0a::ba:46ff:fef8:4052",
|
||||||
"macAddress": "02:ba:46:f8:40:52"
|
"macAddress": "02:ba:46:f8:40:52"
|
||||||
},
|
},
|
||||||
"tail": {
|
"tail": {
|
||||||
|
|
|
||||||
2
lib.nix
2
lib.nix
|
|
@ -15,7 +15,7 @@
|
||||||
part = List.index parts;
|
part = List.index parts;
|
||||||
part0 = part: let
|
part0 = part: let
|
||||||
nibble1' = UInt.FromHexDigit (Str.index part 1);
|
nibble1' = UInt.FromHexDigit (Str.index part 1);
|
||||||
nibble1 = UInt.or' 2 nibble1';
|
nibble1 = UInt.xor 2 nibble1';
|
||||||
nibble0 = Str.index part 0;
|
nibble0 = Str.index part 0;
|
||||||
in
|
in
|
||||||
nibble0 + UInt.toHexLower nibble1;
|
nibble0 + UInt.toHexLower nibble1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue