Commit 98b4fb3359ebf48e2466338df2b89e263e0aa609 introduced changes causing dummy interaces configured using "INTERFACETYPE=dummy" or "DUMMY=yes" to presumably inadvertently no longer be recognized. Restore functionality of these settings by only calling the new pattern matching logic if a prior iftype lookup did not yield success. This is needed to continue supporting configuration of dummy interfaces not matching the predefined naming scheme.
The following constellations have been tested:
"ifcfg-foo" file with "INTERFACETYPE=dummy"
"ifcfg-foo" file with "DUMMY=yes"
"ifcfg-dummy1" file without "INTERFACETYPE" or "DUMMY"
Fixes: 98b4fb3359eb ("compat-suse: fix dummy type detection from ifname")
Signed-off-by: Georg Pfuetzenreuter mail@georg-pfuetzenreuter.net
Commit 98b4fb3359ebf48e2466338df2b89e263e0aa609 introduced changes causing dummy interaces configured using "INTERFACETYPE=dummy" or "DUMMY=yes" to presumably inadvertently no longer be recognized. Restore functionality of these settings by only calling the new pattern matching logic if a prior iftype lookup did not yield success. This is needed to continue supporting configuration of dummy interfaces not matching the predefined naming scheme.
The following constellations have been tested:
Fixes: 98b4fb3359eb ("compat-suse: fix dummy type detection from ifname") Signed-off-by: Georg Pfuetzenreuter mail@georg-pfuetzenreuter.net