I'm not sure that I understand what's your question mean, if you want to persistent your routes, you should write them to some files like route.conf on your system. If you only add routes by netlink.RouteAdd, of course it will disappear when your host reboots.
I'm not sure that I understand what's your question mean, if you want to persistent your routes, you should write them to some files like route.conf on your system. If you only add routes by netlink.RouteAdd, of course it will disappear when your host reboots.