mirror of
https://github.com/containers/podman.git
synced 2025-08-02 01:09:21 +08:00
libpod: Add support for getContainerNetworkInfo on FreeBSD
[NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user