Revert "Fixed a few network UI issues in swarm-mode"
This reverts commit0ce5158a2a
. Signed-off-by: Madhu Venugopal <madhu@docker.com> (cherry picked from commit4623276886
) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
b1819cb61b
commit
65a256f7a8
2 changed files with 0 additions and 14 deletions
|
@ -81,10 +81,6 @@ func (n *networkRouter) postNetworkCreate(ctx context.Context, w http.ResponseWr
|
|||
return err
|
||||
}
|
||||
|
||||
if _, err := n.clusterProvider.GetNetwork(create.Name); err == nil {
|
||||
return libnetwork.NetworkNameError(create.Name)
|
||||
}
|
||||
|
||||
nw, err := n.backend.CreateNetwork(create)
|
||||
if err != nil {
|
||||
if _, ok := err.(libnetwork.ManagerRedirectError); !ok {
|
||||
|
|
|
@ -292,10 +292,6 @@ func (daemon *Daemon) UpdateContainerServiceConfig(containerName string, service
|
|||
return nil
|
||||
}
|
||||
|
||||
func errClusterNetworkConnect() error {
|
||||
return fmt.Errorf("cannot connect or disconnect managed containers on a network")
|
||||
}
|
||||
|
||||
// ConnectContainerToNetwork connects the given container to the given
|
||||
// network. If either cannot be found, an err is returned. If the
|
||||
// network cannot be set up, an err is returned.
|
||||
|
@ -304,9 +300,6 @@ func (daemon *Daemon) ConnectContainerToNetwork(containerName, networkName strin
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if container.Managed {
|
||||
return errClusterNetworkConnect()
|
||||
}
|
||||
return daemon.ConnectToNetwork(container, networkName, endpointConfig)
|
||||
}
|
||||
|
||||
|
@ -320,9 +313,6 @@ func (daemon *Daemon) DisconnectContainerFromNetwork(containerName string, netwo
|
|||
}
|
||||
return err
|
||||
}
|
||||
if container.Managed {
|
||||
return errClusterNetworkConnect()
|
||||
}
|
||||
return daemon.DisconnectFromNetwork(container, network, force)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue