moby/libnetwork/drivers/bridge
Cory Snider f77a3274b4
[chore] clean up reexec.Init() calls
Now that most uses of reexec have been replaced with non-reexec
solutions, most of the reexec.Init() calls peppered throughout the test
suites are unnecessary. Furthermore, most of the reexec.Init() calls in
test code neglects to check the return value to determine whether to
exit, which would result in the reexec'ed subprocesses proceeding to run
the tests, which would reexec another subprocess which would proceed to
run the tests, recursively. (That would explain why every reexec
callback used to unconditionally call os.Exit() instead of returning...)

Remove unneeded reexec.Init() calls from test and example code which no
longer needs it, and fix the reexec.Init() calls which are not inert to
exit after a reexec callback is invoked.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 4e0319c878)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-11 16:31:41 +02:00
..
brmanager libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
bridge.go libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
bridge_store.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
bridge_test.go libnetwork/netutils: drop ElectInterfaceAddresses 2023-01-26 14:56:11 -05:00
errors.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
interface.go libnet/d/bridge: fix bridgeInterface.addresses() 2022-11-08 17:58:06 -05:00
interface_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
labels.go Allow bridge net driver to skip IPv4 configuration of bridge interface 2018-12-23 19:05:20 -05:00
link.go libnetwork: fix empty-lines (revive) 2022-09-26 19:21:58 +02:00
link_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
network_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
port_mapping.go libnetwork: fix empty-lines (revive) 2022-09-26 19:21:58 +02:00
port_mapping_test.go [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
setup.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
setup_bridgenetfiltering.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
setup_bridgenetfiltering_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
setup_device.go daemon: set docker0 subpool as the IPAM pool 2023-04-25 15:32:46 +02:00
setup_device_test.go bump netlink library 2022-06-16 22:25:33 +02:00
setup_firewalld.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
setup_ip_forwarding.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
setup_ip_forwarding_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
setup_ip_tables.go libnetwork: Remove iptables nat rule when hairpin is disabled 2023-01-11 16:32:18 +01:00
setup_ip_tables_test.go libnet/d/bridge: configure store when opts missing 2022-11-08 17:55:25 -05:00
setup_ipv4.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
setup_ipv4_test.go bump netlink library 2022-06-16 22:25:33 +02:00
setup_ipv6.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
setup_ipv6_test.go libnetwork: fix empty-lines (revive) 2022-09-26 19:21:58 +02:00
setup_verify.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
setup_verify_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00