No IP after we reboot router / modem

Hello, community

So, we have a bunch of USB dongles ( Huawei e3372 modems ) connected to a ubuntu host server ( ubuntu 16 ) running LXC containers.

Each dongle is connected to a specific container running ubuntu. ( using macvlan nic type )

The problem we are facing is when we disconnect the dongle, we can’t see the attached interface. ( NO Internet in the container. ) it appears again when we restart the container.

Any possible solution? so the dongle gets attached without restarting the container?