fixing bug of 'internal server error (error 500)' when clicking to Networking link (sidebar nav) when the host is not ubuntu
code refactoring within lxc_net() action