mirror of https://github.com/containers/podman.git
The network ID is not stored. It is just the sha256 hash from the network name. There is a risk of a potential hash collision. However it's very unlikely and even if we hit this it will complain that more than network with this ID exists. The main benefit is that the compat api can have proper network ID support. Also this adds the support for `podman network ls --format "{{.ID}}"` and `--filter id=<ID>`. It also ensures that we can do network rm <ID> and network inspect <ID>. Since we use a hash this commit is backwards compatible even for already existing networks. Signed-off-by: Paul Holzinger <paul.holzinger@web.de> |
||
---|---|---|
.. | ||
config.go | ||
create.go | ||
create_test.go | ||
devices.go | ||
files.go | ||
ip.go | ||
lock.go | ||
netconflist.go | ||
netconflist_test.go | ||
network.go | ||
network_test.go | ||
subnet.go | ||
subnet_test.go |