diff options
author | Doug Rabson <dfr@rabson.org> | 2022-09-08 16:33:24 +0100 |
---|---|---|
committer | Doug Rabson <dfr@rabson.org> | 2022-09-12 16:28:47 +0100 |
commit | c9de84080dd9570944dd4b7b0e46160bb83998bb (patch) | |
tree | aa6c933ba76f3b2be290a5304f0b3e6e13679c13 | |
parent | 51c70e588d56ef16aeef66206890fa508862942d (diff) | |
download | podman-c9de84080dd9570944dd4b7b0e46160bb83998bb.tar.gz podman-c9de84080dd9570944dd4b7b0e46160bb83998bb.tar.bz2 podman-c9de84080dd9570944dd4b7b0e46160bb83998bb.zip |
libpod: Add support for getContainerNetworkInfo on FreeBSD
[NO NEW TESTS NEEDED]
Signed-off-by: Doug Rabson <dfr@rabson.org>
-rw-r--r-- | libpod/networking_freebsd.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/networking_freebsd.go b/libpod/networking_freebsd.go index 5bc2872fc..00666064b 100644 --- a/libpod/networking_freebsd.go +++ b/libpod/networking_freebsd.go @@ -249,6 +249,19 @@ func getContainerNetIO(ctr *Container) (*LinkStatistics64, error) { return &LinkStatistics64{}, nil } +func (c *Container) joinedNetworkNSPath() string { + if c.state.NetNS != nil { + return c.state.NetNS.Name + } else { + return "" + } +} + +func (c *Container) inspectJoinedNetworkNS(networkns string) (q types.StatusBlock, retErr error) { + // TODO: extract interface information from the vnet jail + return types.StatusBlock{}, nil +} + // resultToBasicNetworkConfig produces an InspectBasicNetworkConfig from a CNI // result func resultToBasicNetworkConfig(result types.StatusBlock) define.InspectBasicNetworkConfig { |