Commit b3dfac2
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 b3dfac2
3 files changed
Lines changed: 42 additions & 28 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 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
141 | 155 | | |
142 | 156 | | |
143 | 157 | | |
| |||
1066 | 1080 | | |
1067 | 1081 | | |
1068 | 1082 | | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
| 1083 | + | |
1077 | 1084 | | |
1078 | 1085 | | |
1079 | 1086 | | |
| |||
1095 | 1102 | | |
1096 | 1103 | | |
1097 | 1104 | | |
| 1105 | + | |
1098 | 1106 | | |
1099 | 1107 | | |
1100 | 1108 | | |
| |||
1471 | 1479 | | |
1472 | 1480 | | |
1473 | 1481 | | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1486 | 1485 | | |
1487 | 1486 | | |
1488 | 1487 | | |
| |||
1517 | 1516 | | |
1518 | 1517 | | |
1519 | 1518 | | |
1520 | | - | |
1521 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1522 | 1526 | | |
1523 | 1527 | | |
1524 | 1528 | | |
| |||
3467 | 3471 | | |
3468 | 3472 | | |
3469 | 3473 | | |
3470 | | - | |
| 3474 | + | |
3471 | 3475 | | |
3472 | 3476 | | |
3473 | 3477 | | |
| |||
3565 | 3569 | | |
3566 | 3570 | | |
3567 | 3571 | | |
3568 | | - | |
| 3572 | + | |
3569 | 3573 | | |
3570 | 3574 | | |
3571 | 3575 | | |
| |||
| 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