in src/nccl_healthcheck/nccl_startup.py [0:0]
def apply_namespace_resolution() -> None:
"""Mitigate AR timeout issue, b/318412074.
Systemd adds a route to DNS server for avery DHCP NIC even if the NIC
doesn't have connectivity to it. This removes the duplicate routes.
"""
for eth_idx in range(9):
checker_common.run_command(
"sudo route del -net 169.254.169.254 gw 0.0.0.0"
" netmask 255.255.255.255 dev eth"
f" {eth_idx}"
)