Mellanox / docker-sriov-plugin

Docker networking plugin for SRIOV and passthrough interfaces
Apache License 2.0
80 stars 19 forks source link

[feature request] ipam driver null support #24

Open tpreclik opened 1 year ago

tpreclik commented 1 year ago

I would like to use the plugin in passthrough mode with a null ipam driver. However, the joining of a container to such a network fails:

Error response from daemon: NetworkDriver.Join: Parse gateway [] error: invalid CIDR address:

The problem is that Join tries to parse the gateway address and statically sets DisableGatewayService to false: https://github.com/Mellanox/docker-sriov-plugin/blob/b8d6f3fc5696ec2fbe9a0a4f3555c94dc2c8d48d/driver/driver.go#L413