Commit 9dea821
committed
feat(dhcp): include the host's IPv6 DNS resolvers in the agent's DHCP config
The agent reads a host's nameservers from the DPU's dual-stack `ServiceAddresses`, then builds the `DhcpConfig` it sends to `forge-dhcp-server`. It now splits those nameservers by family at both build sites -- the gRPC control path (`update_dhcp_via_grpc`) and the on-disk config path (`write_dhcp_v4_server_config`) -- and fills `carbide_nameservers_v6` with the IPv6 set, threaded through `from_forge_dhcp_config` and `build_server_config`.
The agent used to filter these nameservers to IPv4 and drop the IPv6 ones, with a TODO marking exactly this gap. The IPv4 path is unchanged -- it still drives the DHCPv4 option-6 nameservers -- and the IPv6 set stays inert until a delivery channel consumes it (RA RDNSS or DHCPv6, see #2644 / #1263).
Tests extend the file-path builder test to assert an IPv6 nameserver round-trips through the written config, alongside the builder's own dual-stack case.
This supports #2640.
Signed-off-by: Chet Nichols III <chetn@nvidia.com>1 parent 7e9c6c9 commit 9dea821
3 files changed
Lines changed: 45 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1078 | 1087 | | |
1079 | 1088 | | |
1080 | 1089 | | |
| |||
1095 | 1104 | | |
1096 | 1105 | | |
1097 | 1106 | | |
| 1107 | + | |
1098 | 1108 | | |
1099 | 1109 | | |
1100 | 1110 | | |
| |||
1471 | 1481 | | |
1472 | 1482 | | |
1473 | 1483 | | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
1478 | 1487 | | |
1479 | 1488 | | |
1480 | 1489 | | |
| |||
1484 | 1493 | | |
1485 | 1494 | | |
1486 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
1487 | 1505 | | |
1488 | 1506 | | |
1489 | 1507 | | |
| |||
1517 | 1535 | | |
1518 | 1536 | | |
1519 | 1537 | | |
1520 | | - | |
1521 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
1522 | 1545 | | |
1523 | 1546 | | |
1524 | 1547 | | |
| |||
3467 | 3490 | | |
3468 | 3491 | | |
3469 | 3492 | | |
3470 | | - | |
| 3493 | + | |
3471 | 3494 | | |
3472 | 3495 | | |
3473 | 3496 | | |
| |||
3565 | 3588 | | |
3566 | 3589 | | |
3567 | 3590 | | |
3568 | | - | |
| 3591 | + | |
3569 | 3592 | | |
3570 | 3593 | | |
3571 | 3594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | | - | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| 328 | + | |
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| |||
413 | 416 | | |
414 | 417 | | |
415 | 418 | | |
416 | | - | |
| 419 | + | |
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
| 423 | + | |
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
425 | 429 | | |
426 | 430 | | |
| 431 | + | |
427 | 432 | | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| 439 | + | |
434 | 440 | | |
435 | 441 | | |
436 | 442 | | |
| |||
463 | 469 | | |
464 | 470 | | |
465 | 471 | | |
| 472 | + | |
466 | 473 | | |
467 | 474 | | |
468 | 475 | | |
469 | 476 | | |
470 | 477 | | |
471 | 478 | | |
| 479 | + | |
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
| |||
0 commit comments