mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
libpod: remove CNI word were no longer applicable
We should have done this much earlier, most of the times CNI networks just mean networks so I changed this and also fixed some function names. This should make it more clear what actually refers to CNI and what is just general network backend stuff. [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -1251,12 +1251,7 @@ func (c *Container) Secrets() []*ContainerSecret {
|
||||
// Networks gets all the networks this container is connected to.
|
||||
// Please do NOT use ctr.config.Networks, as this can be changed from those
|
||||
// values at runtime via network connect and disconnect.
|
||||
// If the container is configured to use CNI and this function returns an empty
|
||||
// array, the container will still be connected to the default network.
|
||||
// The second return parameter, a bool, indicates that the container
|
||||
// is joining the default CNI network - the network name will be included in the
|
||||
// returned array of network names, but the container did not explicitly join
|
||||
// this network.
|
||||
// Returned array of network names or error.
|
||||
func (c *Container) Networks() ([]string, error) {
|
||||
if !c.batched {
|
||||
c.lock.Lock()
|
||||
|
Reference in New Issue
Block a user