Impact: When /etc/network/fan contains two entries for the same mapping (for example on mapping for the generic network mapping and one for a specific interface) it will try to set up the same Fan bridge twice.
Fix: Add a break which exits the setup loop once there has been one successful run.
Testcase: If in an environment that uses one of the 192.168.0.0/16 subnets, and host has for example a 192.168.1.0/24 address. Then trying to use
fanatic enable-fan -u 192.168.1.x/24 -o 250.0.0.0/8
would show an error now and with the fix applied work ok.
SRU Justification (Zesty/Xenial)
Impact: When /etc/network/fan contains two entries for the same mapping (for example on mapping for the generic network mapping and one for a specific interface) it will try to set up the same Fan bridge twice.
Fix: Add a break which exits the setup loop once there has been one successful run.
Testcase: If in an environment that uses one of the 192.168.0.0/16 subnets, and host has for example a 192.168.1.0/24 address. Then trying to use
fanatic enable-fan -u 192.168.1.x/24 -o 250.0.0.0/8
would show an error now and with the fix applied work ok.