GetNetworkConfig returns the network interfaces and routes.
(_ *struct{}, networkArgs *CreateLinksAndRoutesArgs)
| 1258 | |
| 1259 | // GetNetworkConfig returns the network interfaces and routes. |
| 1260 | func (cm *containerManager) GetNetworkConfig(_ *struct{}, networkArgs *CreateLinksAndRoutesArgs) error { |
| 1261 | log.Debugf("containerManager.GetNetworkConfig") |
| 1262 | cm.l.mu.Lock() |
| 1263 | if cm.l.networkArgs != nil { |
| 1264 | *networkArgs = *cm.l.networkArgs |
| 1265 | } |
| 1266 | cm.l.mu.Unlock() |
| 1267 | |
| 1268 | if networkArgs == nil { |
| 1269 | log.Debugf("networks args is nil") |
| 1270 | } |
| 1271 | return nil |
| 1272 | } |