mirror of
https://github.com/moby/moby.git
synced 2026-07-13 02:52:20 +00:00
NeighborOptions() returned an NeighborOptionSetter interface, which contained "methods" that returned functional options. Such a construct could have made sense if the functional options returned would (e.g.) be pre-propagated with information from the Sandbox (network namespace), but none of that was the case. There was only one implementation of NeighborOptionSetter (networkNamespace), which happened to be the same as the only implementation of Sandbox, so remove the interface as well, to help networkNamespace with its multi-personality disorder. This patch: - removes Sandbox.LinkName() and makes it a regular function (WithLinkName) - removes Sandbox.Family() and makes it a regular function (WithFamily) - removes Sandbox.NeighborOptions(). - removes the NeighborOptionSetter interface Signed-off-by: Sebastiaan van Stijn <github@gone.nl>