From c9de84080dd9570944dd4b7b0e46160bb83998bb Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Thu, 8 Sep 2022 16:33:24 +0100 Subject: libpod: Add support for getContainerNetworkInfo on FreeBSD [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson --- libpod/networking_freebsd.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 { -- cgit v1.2.3-54-g00ecf