Ubuntu does not support restarting network and it needs to restart each of the interfaces. In debian restarting the network works and will continue to use the same method. lsb_release command is not used as it is not installed by default in debian.