(opts *handlerOpts)
| 391 | } |
| 392 | |
| 393 | func getMACAddressOpts(opts *handlerOpts) ([]cni.NamespaceOpts, error) { |
| 394 | if opts.containerMAC != "" { |
| 395 | return []cni.NamespaceOpts{ |
| 396 | cni.WithLabels(map[string]string{ |
| 397 | // allow loose CNI argument verification |
| 398 | // FYI: https://github.com/containernetworking/cni/issues/560 |
| 399 | "IgnoreUnknown": "1", |
| 400 | }), |
| 401 | cni.WithArgs("MAC", opts.containerMAC), |
| 402 | }, nil |
| 403 | } |
| 404 | return nil, nil |
| 405 | } |
| 406 | |
| 407 | func getIP6AddressOpts(opts *handlerOpts) ([]cni.NamespaceOpts, error) { |
| 408 | if opts.containerIP6 != "" { |
no test coverage detected
searching dependent graphs…