From edb1609c6121a550a3c882529e44387c217d2b03 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 2 Mar 2018 11:10:37 -0500 Subject: Update DB to hold CNI network information Replace our old IP and Subnet fields in state with CNI types that contain a lot more information. Retrieve these structs from the CNI plugins themselves. Signed-off-by: Matthew Heon Closes: #440 Approved by: baude --- libpod/boltdb_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpod/boltdb_state.go') diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go index d4a6ea4cb..7db02d533 100644 --- a/libpod/boltdb_state.go +++ b/libpod/boltdb_state.go @@ -140,9 +140,9 @@ func (s *BoltState) Refresh() error { state.Mountpoint = "" state.Mounted = false state.State = ContainerStateConfigured - state.IPAddress = "" - state.SubnetMask = "" state.ExecSessions = make(map[string]*ExecSession) + state.IPs = nil + state.Routes = nil newStateBytes, err := json.Marshal(state) if err != nil { -- cgit v1.2.3-54-g00ecf