sonic-buildimage/files/image_config/interfaces
Saikrishna Arcot f207a9b0e0
Fix potentially not having any loopback address on lo interface (#16490)
In #15080, there was a command added to re-add 127.0.0.1/8 to the lo
interface when the networking configuration is being brought down.
However, the trigger for that command is `down`, which, looking at
ifupdown2 configuration files, runs immediately after 127.0.0.1/16 is
removed. This means there may be a period of time where there are no
loopback addresses assigned to the lo interface, and redis commands will
fail.

Fix this by changing this to pre-down, which should run well before
127.0.0.1/16 is removed, and should always leave lo with a loopback
address.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2023-09-14 12:55:50 -07:00
..
init_interfaces [sonic boot] disable dhcp during boot up, until updategraph service is running (#2316) 2018-11-29 08:34:22 -08:00
interfaces-config.service [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00
interfaces-config.sh [dns] Add support for static DNS configuration. (#14549) 2023-06-22 19:12:30 +03:00
interfaces.j2 Fix potentially not having any loopback address on lo interface (#16490) 2023-09-14 12:55:50 -07:00