Facing networking issue inside lxd container

I have a linux box on which I had several containers running. I just rebooted the box and the network is still there on it as I can see but inside all the containers I have lost network.

On running any network based command inside the container such as sudo apt-get update, it shows connection timed out.

On doing lxc list I can see that there is public and private IP added on the containers but I have got no outbound connectivity. How can I resolve this?

Resolved by restarting snap lxd:

sudo systemctl stop snap.lxd.daemon
sudo systemctl start snap.lxd.daemon