fixed linux nic name match

linux network interface name can have hyphen strings
Merge pull request #10329 from pengyao/linux_interfaces

fixed linux nic name match