diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-06-21 11:11:59 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-06-21 11:11:59 +0200 |
commit | fbb81e5f2c5542d86ffbb0cb8e05ce2640ed65de (patch) | |
tree | 6c5951af8530f003b8e3311c62d75802052ba363 /IP migration API.md | |
parent | 0d389e1d6c1aed4a92f82d9711f4564a12390fcd (diff) |
vault backup: 2025-06-21 11:11:59
Diffstat (limited to 'IP migration API.md')
-rw-r--r-- | IP migration API.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/IP migration API.md b/IP migration API.md new file mode 100644 index 0000000..c6bd91b --- /dev/null +++ b/IP migration API.md @@ -0,0 +1,56 @@ +--- +tags: + - work +--- +# Previous IP migration API +Stateful: sqlite db: +- subnet state (mode: `migrating`) +- ip state: active location (`CPH|AMS`) + +config: +- LR map file +- db config +- tls +- ip announcement file +- hosts +- key +- user +IP announcement file. + +Flow: +- Prepare subnet (out-of-band) + - Creates a record for the subnet, and puts it in "migrating" mode. +- Call migrate IP (ip, dest) + - Fails if subnet not prepared prior. + - Fails if destination not exists. + - Fails if invalid ip address + + +# New IP migration API + +What is a "link scope"? + +API: +- Prepare subnet : cidr +- Migrate IP + - os set allowed address pair + - tun src: add /32 +- Migrate gateway + +Kevin meet: +tunnel-dst vm in openstack +tunnel-src hardware ding +puppet op tunnels + +stap 1 paars = api doet: op os router route voor elk ip in subnet aanmaken en proxy arp shit per subnet. AllowedAddrPair op port tunnel-dst. In eerste instantie gewoon alle IPs uit het subnet toevoegen. + +Beide IPv4 en IPv6 (6 kan iets later) + +Alle stappen moeten reversable zijn. + +stap 2 roze: test vm, routes op os verwijderen, op src net toevoegen +stap 3 geel: switch network naar openstack, switch gateway ip + + +**How ARP works** +Host A thinks it has direct conn to Host B, thus sends ARP request to learn its MAC.
\ No newline at end of file |