I have configured a USB Wifi Device (TP-Link) as a Wifi access point successfully on wlan0. However, if the USB device is unplugged and then plugged back in, the interface does not come back. I can see in dmesg the device increments form phy0 to phy1 to phy2 on each unplug/plug. Only way I found fix is to reboot vyos and all is happy then.
Is there any way to force the USB device to always associate as ‘phy0’ and work if removed and reinserted?