Move network operations out of container package

These network operations really don't have anything to do with the
container but rather are setting up the networking.

Ideally these wouldn't get shoved into the daemon package, but doing
something else (e.g. extract a network service into a new package) but
there's a lot more work to do in that regard.
In reality, this probably simplifies some of that work as it moves all
the network operations to the same place.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2018-05-10 16:44:09 -04:00
parent 17b039cb49
commit cc8f358c23
5 changed files with 367 additions and 387 deletions

View File

@@ -174,7 +174,7 @@ func (daemon *Daemon) initializeNetworkingPaths(container *container.Container,
continue
}
ep, err := nc.GetEndpointInNetwork(sn)
ep, err := getEndpointInNetwork(nc.Name, sn)
if err != nil {
continue
}