Mellanox / docker-sriov-plugin

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

Fix plugin config and NIC prefix #27

Open bsmith94 opened 5 months ago

bsmith94 commented 5 months ago

Correct config problems

Specify ethPrefix in BuildNetworkOptions.

Store subnet in JSON.

IPv4Data has incorrect values in it. Pool contains the subnet. If a gateway is configured, Gateway does contain the gateway CIDR. If no gateway is configured, Gateway contains the IP range with the subnet's CIDR. This is due to a bug that appears to be in docker/go-plugins-helpers.

Isolate IPv4Data struct usage to the driver's CreateNetwork function.

Allow for an empty gateway.