moby/libnetwork/osl
Cory Snider 3452a76589 libnetwork: fix sandbox restore
The method to restore a network namespace takes a collection of
interfaces to restore with the options to apply. The interface names are
structured data, tuples of (SrcName, DstPrefix) but for whatever reason
are being passed into Restore() serialized to strings. A refactor,
f0be4d126d, accidentally broke the
serialization by dropping the delimiter. Rather than fix the
serialization and leave the time-bomb for someone else to trip over,
pass the interface names as structured data.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 50eb2d2782)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-05-30 15:47:20 -04:00
..
kernel all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
interface_linux.go libnetwork/osl: unify stubs for IfaceOption 2023-04-28 20:20:58 +02:00
interface_unsupported.go libnetwork/osl: unify stubs for IfaceOption 2023-04-28 20:20:58 +02:00
namespace_linux.go libnetwork: fix sandbox restore 2023-05-30 15:47:20 -04:00
namespace_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
namespace_windows.go libnetwork: drop InitOSContext() 2022-10-25 13:35:44 -04:00
neigh_linux.go libnetwork/osl: unify stubs for NeighOption 2023-04-28 20:20:58 +02:00
neigh_unsupported.go libnetwork/osl: unify stubs for NeighOption 2023-04-28 20:20:58 +02:00
options_linux.go Add service virtual IP to sandbox's loopback address 2017-08-08 16:16:45 -07:00
route_linux.go libnetwork: fix empty-lines (revive) 2022-09-26 19:21:58 +02:00
sandbox.go libnetwork: fix sandbox restore 2023-05-30 15:47:20 -04:00
sandbox_freebsd.go libnetwork: drop InitOSContext() 2022-10-25 13:35:44 -04:00
sandbox_linux_test.go [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
sandbox_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
sandbox_unsupported_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00