moby/libnetwork/drivers
Albin Kerouanton b9e27acabc
libnet/d/bridge: dead code: no conflict on stale default nw
A check was added to the bridge driver to detect when it was called to
create the default bridge nw whereas a stale default bridge already
existed. In such case, the bridge driver was deleting the stale network
before re-creating it. This check was introduced in docker/libnetwork@6b158eac6a
to fix an issue related to newly introduced live-restore.

However, since commit docker/docker@ecffb6d58c,
the daemon doesn't even try to create default networks if there're
active sandboxes (ie. due to live-restore).

Thus, now it's impossible for the default bridge network to be stale and
to exists when the driver's CreateNetwork() method is called. As such,
the check introduced in the first commit mentioned above is dead code
and can be safely removed.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
2024-01-04 11:50:04 +01:00
..
bridge libnet/d/bridge: dead code: no conflict on stale default nw 2024-01-04 11:50:04 +01:00
host libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
ipvlan libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00
macvlan libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00
null libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
overlay add //go:build directives to prevent downgrading to go1.16 language 2023-12-15 15:24:15 +01:00
remote migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
windows libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00