()
| 1062 | } |
| 1063 | |
| 1064 | func (p *initProcess) createNetworkInterfaces() error { |
| 1065 | for _, config := range p.config.Config.Networks { |
| 1066 | strategy, err := getStrategy(config.Type) |
| 1067 | if err != nil { |
| 1068 | return err |
| 1069 | } |
| 1070 | n := &network{ |
| 1071 | Network: *config, |
| 1072 | } |
| 1073 | if err := strategy.create(n, p.pid()); err != nil { |
| 1074 | return err |
| 1075 | } |
| 1076 | p.config.Networks = append(p.config.Networks, n) |
| 1077 | } |
| 1078 | return nil |
| 1079 | } |
| 1080 | |
| 1081 | // setupNetworkDevices sets up and initializes any defined network interface inside the container. |
| 1082 | func (p *initProcess) setupNetworkDevices() error { |
no test coverage detected