Networking operating system for bare metal switches