I’ve uploaded a quick piece of open source code to GitHub. It’s called FIE LoNetSwitch (fie_lonet_switch).
https://github.com/leith-bartrich/fie_lonet_switch
It’s a user tool for switching local configuration and stuff based on a switch you manage, between being in a local (lo) or network (net) mode. Additionally it handles ‘groups’ of things and can set network ‘locales’. Though it doesn’t do those things in a way that gets in the way of a simple lo/net switch if that’s all you want.
If that’s interesting, head over to GitHub and take a look. It’s MIT licensed. No strings attached.