summaryrefslogtreecommitdiff
path: root/libpod/network/cni/run.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-17 00:21:31 +0100
committerGitHub <noreply@github.com>2021-11-17 00:21:31 +0100
commitc6616648780881ac717817cf79de84084ce7c02f (patch)
tree0e356fc32d4765f141395bd8fa2d7551c80a65bc /libpod/network/cni/run.go
parent059785c3edfe937ce8f39d235440bf0e03620ed8 (diff)
parent97c6403a1bcde8501955fb1798740cf125597881 (diff)
downloadpodman-c6616648780881ac717817cf79de84084ce7c02f.tar.gz
podman-c6616648780881ac717817cf79de84084ce7c02f.tar.bz2
podman-c6616648780881ac717817cf79de84084ce7c02f.zip
Merge pull request #12319 from Luap99/nettypes-rename
rename libpod nettypes fields
Diffstat (limited to 'libpod/network/cni/run.go')
-rw-r--r--libpod/network/cni/run.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/network/cni/run.go b/libpod/network/cni/run.go
index 667ed3ab1..d0ff49b73 100644
--- a/libpod/network/cni/run.go
+++ b/libpod/network/cni/run.go
@@ -135,8 +135,8 @@ func CNIResultToStatus(res cnitypes.Result) (types.StatusBlock, error) {
cniInt := cniResult.Interfaces[*ip.Interface]
netInt, ok := interfaces[cniInt.Name]
if ok {
- netInt.Networks = append(netInt.Networks, types.NetAddress{
- Subnet: types.IPNet{IPNet: ip.Address},
+ netInt.Subnets = append(netInt.Subnets, types.NetAddress{
+ IPNet: types.IPNet{IPNet: ip.Address},
Gateway: ip.Gateway,
})
interfaces[cniInt.Name] = netInt
@@ -147,8 +147,8 @@ func CNIResultToStatus(res cnitypes.Result) (types.StatusBlock, error) {
}
interfaces[cniInt.Name] = types.NetInterface{
MacAddress: types.HardwareAddr(mac),
- Networks: []types.NetAddress{{
- Subnet: types.IPNet{IPNet: ip.Address},
+ Subnets: []types.NetAddress{{
+ IPNet: types.IPNet{IPNet: ip.Address},
Gateway: ip.Gateway,
}},
}